This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.
Generate a single entry of the graph G in GML format.
- G (NetworkX graph) – The graph to be converted to GML.
- stringizer (callable, optional) – A stringizer which converts non-int/float/dict values into strings. If
it cannot convert a value into a string, it should raise a
ValueErrorraised to indicate that. Default value:
lines – Lines of GML data. Newlines are not appended.
generator of strings
stringizercannot convert a value into a string, or the value to convert is not a string while
Graph attributes named
'edge',node attributes named
'label', edge attributes named
Gis a multigraph) are ignored because these attribute names are used to encode the graph structure.