GMLImporter#

class eclypse.io.defaults.gml.GMLImporter[source]#

Bases: NetworkXImporter

Importer for GML files.

Methods

read_data(source, *[, context])

Read a NetworkX graph from a GML file.

read_data(source, *, context=None)[source]#

Read a NetworkX graph from a GML file.

Parameters:
  • source (str | Path) – The source GML path.

  • context (IOContext | None) – Optional import/export customisation.

Returns:

The decoded graph.

Return type:

nx.DiGraph