save the name of the text too
[scpubgit/stemmatology.git] / lib / Text / Tradition / Parser / GraphML.pm
index 3ecd936..9fe2911 100644 (file)
@@ -79,6 +79,7 @@ sub graphml_parse {
     }
 
     my $graph_el = $xpc->find( '/g:graphml/g:graph' )->[0];
+    $graph_hash->{'name'} = $graph_el->getAttribute( 'id' );
 
     my $node_reg = {};