GraphImporter#
- class eclypse.io.base.GraphImporter[source]#
Bases:
ABC,Generic[TGraph,TData]Base class for graph importers.
Importers read a source into an intermediate data representation, then build an ECLYPSE graph object from that representation. Subclasses normally implement
read_data()andfrom_data().Methods
from_data(data, *[, kind, context])Convert importer data into a graph object.
load(source, *[, kind, context])Import a graph object from the provided source.
read_data(source, *[, context])Read importer data from a source.
- abstractmethod read_data(source, *, context=None)[source]#
Read importer data from a source.
- Parameters:
source (str | Path) – The source path to read.
context (IOContext | None) – Optional import/export customisation.
- Returns:
The intermediate representation handled by
from_data().- Return type: