reworked the gml export format to be compatible with the networkx requirements