rmgpy.molecule.graph.Edge

class rmgpy.molecule.graph.Edge(vertex1, vertex2)

A base class for edges in a graph. This class does not store the vertex pair that comprises the edge; that functionality would need to be included in the derived class.

copy(self) → Edge

Return a copy of the edge. The default implementation assumes that no semantic information is associated with each edge, and therefore simply returns a new Edge object. Note that the vertices are not copied in this implementation.

equivalent(self, Edge other) → bool

Return True if two edges self and other are semantically equivalent, or False if not. You should reimplement this function in a derived class if your edges have semantic information.

getOtherVertex(self, Vertex vertex) → Vertex

Given a vertex that makes up part of the edge, return the other vertex. Raise a ValueError if the given vertex is not part of the edge.

isSpecificCaseOf(self, Edge other) → bool

Return True if self is semantically more specific than other, or False if not. You should reimplement this function in a derived class if your edges have semantic information.

vertex1

vertex1: rmgpy.molecule.graph.Vertex

vertex2

vertex2: rmgpy.molecule.graph.Vertex