Maybe I don't understand, but I don't want to extend an existing module. I'm searching for a module that will create GraphML.
Right now I'm already implementing it with XML::Twig.
I read a GraphML file which I use as a kind of template, with XML::Twig. Cut out all the nodes and sub graphs which I copy, modify and paste it back in.
Works quite well...
s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e