Commit 95405617 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix small bug in local/extendend_clustering

The function directed() no longer exists, is_directed() should be used
instead.
parent 08d96f56
......@@ -101,8 +101,8 @@ def local_clustering(g, prop=None, undirected=False):
if prop == None:
prop = g.new_vertex_property("double")
was_directed = g.directed()
if g.directed() and undirected:
was_directed = g.is_directed()
if g.is_directed() and undirected:
g.set_directed(False)
try:
_gt.extended_clustering(g._Graph__graph,
......@@ -233,8 +233,8 @@ def extended_clustering(g, props=None, max_depth=3, undirected=False):
topology of networks", arXiv:physics/0605235v4
"""
was_directed = g.directed()
if g.directed() and undirected:
was_directed = g.is_directed()
if g.is_directed() and undirected:
g.set_directed(False)
if props == None:
props = []
......
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