Skip to content
Snippets Groups Projects
Commit 1f1707de authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

In read_overlap.py, plot with dot from Graphviz.

parent cdeb688e
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ with open("edgelist_1.csv") as f:
int(row[3]), float(row[4])
G.add_edge((k1, i1), (k2, i2), weight = weight)
pos = nx.nx_agraph.graphviz_layout(G, prog="dot")
plt.figure()
nx.draw(G, with_labels=True)
nx.draw(G, pos, with_labels=True)
plt.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment