GraphMLImporter.read_data#

GraphMLImporter.read_data(source, *, context=None)[source]

Read a NetworkX graph from a GraphML file.

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

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

Returns:

The decoded graph.

Return type:

nx.DiGraph