Source code for molfoundry.aut

import molfoundry.graph as graph
from .core import TSObject

_class_ref = TSObject.get_class_ref("Aut")


[docs] class Aut(TSObject): def __init__(self) -> None: super().__init__(_class_ref) def __getitem__(self, v: "graph.Vertex") -> "graph.Vertex": return graph.Vertex.wrap(self._ref.getVertex(v._ref)) def __str__(self): return self._ref.toString() def __repr__(self): return self._ref.toString()
[docs] def inverse(self) -> "Aut": return Aut.wrap(self._ref.inverse())
[docs] def compose(self, other: "Aut") -> "Aut": return Aut.wrap(TSObject.wrap_exception(self._ref.compose(other._ref)))
[docs] @staticmethod def fromCycleNotation(graph: "graph.Graph", s: str) -> "Aut": return Aut.wrap(TSObject.call_static(_class_ref, "fromCycleNotation", graph._ref, s))