GraphExporter#
- class eclypse.io.base.GraphExporter[source]#
Bases:
ABC,Generic[TGraph,TData]Base class for graph exporters.
Exporters convert an ECLYPSE graph object into an intermediate data representation, then write that representation to a destination. Subclasses normally implement
to_data()andwrite_data().Methods
dump(graph, target, *[, context])Export a graph object to the provided target.
to_data(graph, *[, context])Convert a graph object into the exporter intermediate representation.
write_data(data, target, *[, context])Write exporter data to a target.
- abstractmethod to_data(graph, *, context=None)[source]#
Convert a graph object into the exporter intermediate representation.
- Parameters:
- Returns:
The intermediate representation handled by
write_data().- Return type: