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

Do not create a Graphviz file

Just write a new edgelist. The Graphviz file can be created afterwards
with `edgelist_to_Graphviz.py`.
parent c503c2fc
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ given as argument of the script. ...@@ -10,7 +10,6 @@ given as argument of the script.
""" """
import networkx as nx import networkx as nx
from networkx import nx_agraph
import report_graph import report_graph
...@@ -54,7 +53,4 @@ if __name__ == "__main__": ...@@ -54,7 +53,4 @@ if __name__ == "__main__":
len_H = len(H) len_H = len(H)
print("Number of nodes:", len_H) print("Number of nodes:", len_H)
print("Number of edges:", H.number_of_edges()) print("Number of edges:", H.number_of_edges())
A = nx_agraph.to_agraph(H) nx.write_edgelist(H, "component.csv", data = False)
report_graph.partition_graph_date(A, H.graph["e_overestim"])
A.write("eddy_graph.gv")
print('Created file "eddy_graph.gv".')
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