From 1f1707de2d33ccdfd18d64319a615dbdae631e5c Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Wed, 20 Jun 2018 15:14:00 +0200 Subject: [PATCH] In read_overlap.py, plot with dot from Graphviz. --- Tests/read_overlap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/read_overlap.py b/Tests/read_overlap.py index 9c756497..9f4b01cd 100755 --- a/Tests/read_overlap.py +++ b/Tests/read_overlap.py @@ -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() -- GitLab