rmgpy.molecule.graph.Edge

class rmgpy.molecule.graph.Edge

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()

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()

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()

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()

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.