Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pygraphml/graphml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ def parse(self, fname):

# source/target attributes refer to IDs: http://graphml.graphdrawing.org/xmlns/1.1/graphml-structure.xsd
e = g.add_edge_by_id(source, dest)

# keep the id of the parsed dom
e.id = edge.getAttribute('id')

for attr in edge.getElementsByTagName("data"):
if attr.firstChild:
Expand Down