@@ -305,15 +305,15 @@ bool write_graphml(const graphmlt &src, std::ostream &os)
305
305
key.new_element (" default" ).data =" false" ;
306
306
}
307
307
308
- // <key attr.name="cyclehead" attr.type="boolean" for="edge "
308
+ // <key attr.name="cyclehead" attr.type="boolean" for="node "
309
309
// id="cyclehead">
310
310
// <default>false</default>
311
311
// </key>
312
312
{
313
313
xmlt &key = graphml.new_element (" key" );
314
314
key.set_attribute (" attr.name" , " cyclehead" );
315
315
key.set_attribute (" attr.type" , " boolean" );
316
- key.set_attribute (" for" , " edge " );
316
+ key.set_attribute (" for" , " node " );
317
317
key.set_attribute (" id" , " cyclehead" );
318
318
319
319
key.new_element (" default" ).data = " false" ;
@@ -402,6 +402,16 @@ bool write_graphml(const graphmlt &src, std::ostream &os)
402
402
key.set_attribute (" id" , " producer" );
403
403
}
404
404
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
+
405
415
// <key attr.name="startline" attr.type="int" for="edge" id="startline"/>
406
416
{
407
417
xmlt &key=graphml.new_element (" key" );
0 commit comments