Commit 717ef0f8 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in pseudo_diameter() when using filtered graphs

parent 69c011b8
......@@ -1232,7 +1232,7 @@ def pseudo_diameter(g, source=None, weights=None):
"""
if source is None:
source = g.vertex(0)
source = g.vertex(0, use_index=False)
dist, target = 0, source
while True:
new_source = target
......
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