Commit 02067e65 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix bug in graph_union() with filtered graphs

parent bfd22685
Pipeline #267 passed with stage
in 184 minutes and 10 seconds
......@@ -1186,13 +1186,13 @@ def graph_union(g1, g2, intersection=None, props=None, include=False,
emask_flipped = False
if emask is not None and not emask_flip:
emask.a = numpy.logical_not(emask.a)
emask_flipped = True
g1.set_edge_filter(emask, True)
emask_flipped = True
vmask, vmask_flip = g1.get_vertex_filter()
vmask_flipped = False
if vmask is not None and not vmask_flip:
vmask.a = not vmask.a
vmask.a = numpy.logical_not(vmask.a)
g1.set_vertex_filter(vmask, True)
vmask_flipped = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment