GraphImporter.load#

GraphImporter.load(source, *, kind=None, context=None)[source]

Import a graph object from the provided source.

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

  • kind (GraphKind | None) – Optional graph kind requested by the caller.

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

Returns:

The imported graph object.

Return type:

TGraph