Commit 5ccc1de3 authored by Benoit GAUZERE's avatar Benoit GAUZERE

Add graph id for gxl files

parent b8064e86
This diff is collapsed.
......@@ -45,7 +45,7 @@ def loadGXL(filename):
tree = ET.parse(filename)
root = tree.getroot()
index = 0
G = nx.Graph(filename=basename(filename), name=root[0].attrib['id']) # recuperer le nom de la molécule
G = nx.Graph(filename=basename(filename), name=root[0].attrib['id'])
dic={}
for node in root.iter('node'):
label = node.find('attr')[0].text
......
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