Commit 4cdad2f3 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

kcore_decomposition(): fix inconsistency for directed graphs

parent 1d2b1fab
Pipeline #212 failed with stage
in 3603 minutes and 35 seconds
......@@ -1258,12 +1258,6 @@ def kcore_decomposition(g, deg="out", vprop=None):
if deg not in ["in", "out", "total"]:
raise ValueError("invalid degree: " + str(deg))
if g.is_directed():
if deg == "out":
g = GraphView(g, reversed=True)
if deg == "total":
g = GraphView(g, directed=False)
libgraph_tool_topology.\
kcore_decomposition(g._Graph__graph, _prop("v", g, vprop),
_degree(g, deg))
......
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