Commit ff5843bf authored by yvonneanne's avatar yvonneanne

draw arborescences separately

parent 1c1fe05a
......@@ -411,6 +411,7 @@ def drawArborescences(g, pngname="results/weighted_graph.png"):
nx.draw_networkx_edges(g, pos, edgelist=edge_j, width=1,
alpha=0.5, edge_color=colors[j]) # , arrowsize=20)
plt.savefig(pngname+str(j)+'.png') # save as png
plt.close()
# return best edges to swap for stretch in g
......
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