Commit 1c1fe05a authored by yvonneanne's avatar yvonneanne

extend init

parent 0919f68c
......@@ -28,8 +28,7 @@ def init_k_graph(k, n):
for (u, v) in g.edges():
g[u][v]['arb'] = -1
g.graph['k'] = k
if 'root' not in g.graph.keys():
g.graph['root'] = 0 #set root node to be 0
g.graph['root'] = 0 #set root node to be 0
return g
# reset the arb attribute for all edges to -1, i.e., no arborescence assigned yet
......
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