@@ -305,15 +305,15 @@ bool write_graphml(const graphmlt &src, std::ostream &os)
305305 key.new_element (" default" ).data =" false" ;
306306 }
307307
308- // <key attr.name="cyclehead" attr.type="boolean" for="edge "
308+ // <key attr.name="cyclehead" attr.type="boolean" for="node "
309309 // id="cyclehead">
310310 // <default>false</default>
311311 // </key>
312312 {
313313 xmlt &key = graphml.new_element (" key" );
314314 key.set_attribute (" attr.name" , " cyclehead" );
315315 key.set_attribute (" attr.type" , " boolean" );
316- key.set_attribute (" for" , " edge " );
316+ key.set_attribute (" for" , " node " );
317317 key.set_attribute (" id" , " cyclehead" );
318318
319319 key.new_element (" default" ).data = " false" ;
@@ -402,6 +402,16 @@ bool write_graphml(const graphmlt &src, std::ostream &os)
402402 key.set_attribute (" id" , " producer" );
403403 }
404404
405+ // <key attr.name="creationtime" attr.type="string" for="graph"
406+ // id="creationtime"/>
407+ {
408+ xmlt &key = graphml.new_element (" key" );
409+ key.set_attribute (" attr.name" , " creationtime" );
410+ key.set_attribute (" attr.type" , " string" );
411+ key.set_attribute (" for" , " graph" );
412+ key.set_attribute (" id" , " creationtime" );
413+ }
414+
405415 // <key attr.name="startline" attr.type="int" for="edge" id="startline"/>
406416 {
407417 xmlt &key=graphml.new_element (" key" );
0 commit comments