Commit 91b8743c authored by Tiago Peixoto's avatar Tiago Peixoto

Fix bug in similarity() when using weighted graphs

parent f90b3ae1
......@@ -202,7 +202,7 @@ def similarity(g1, g2, eweight1=None, eweight2=None, label1=None, label2=None,
except ValueError:
label1 = label1.copy(label2.value_type())
if eweight1 is None and eweight1 is None:
if eweight1 is None and eweight2 is None:
ew1 = ew2 = libcore.any()
else:
if eweight1 is None:
......
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