Is there a simple way to create a GML file out of edgelists (comma separated) using Python? This is the opposite situation of this question
Asked
Active
Viewed 545 times
2 Answers
0
Suppose you have an edge list file (.edges) and want to convert it a gml file, do this. The gml file will get created in your present working directory.
import networkx as nx
G= nx.read_edgelist('414.edges') # load edgelist file
nx.write_gml(G, "414.gml") # create gml file

Lin
- 11
- 3