Commit b15bbe0c authored by Tiago Peixoto's avatar Tiago Peixoto

Reflect directionality of the underlying graph for condensation_graph()

parent 494f9a64
......@@ -339,7 +339,7 @@ def condensation_graph(g, prop, weight=None):
Community network of a random graph. The sizes of the nodes indicate the
size of the corresponding community.
"""
gp = Graph()
gp = Graph(directed=g.is_directed())
vcount = gp.new_vertex_property("int32_t")
if weight != None:
ecount = gp.new_edge_property("double")
......
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