linchemin.cgu.graph_transformations.format_translators.GraphFormatTranslator

class linchemin.cgu.graph_transformations.format_translators.GraphFormatTranslator[source]

Abstract representation of translators handling graph formats.

Attributes:

as_input: a string indicating if the ‘to_iron’ method has been implemented

If implemented: as_input = ‘implemented’ If not implemented: as_input = None

as_output: a string indicating if the ‘from_iron’ method has been implemented

If implemented: as_output = ‘implemented’ If not implemented: as_output = None

__init__()

Methods

__init__()

from_iron(graph)

To translate an Iron instance into a graph object of another type.

to_iron(graph)

To translate a graph object of a specific type into an Iron instance.

Attributes

as_input

as_output