Commit 020c0a33 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix issue with edge_difference() and directed edges

parent 6cfd05c4
......@@ -863,6 +863,8 @@ def edge_difference(g, prop, ediff=None):
if ediff.value_type() != val_t:
raise ValueError("'ediff' must be of the same value type as 'prop': " +
if not g.is_directed():
g = GraphView(g, directed=True)
libcore.edge_difference(g._Graph__graph, _prop("v", g, prop),
_prop("e", g, ediff))
return ediff
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