molfoundry.CompositionGraph#
- class molfoundry.CompositionGraph(class_ref, *args)#
One graph of a rule-composition overlap, as seen by a predicate.
- Parameters:
class_ref (Any)
- property vertices: List[CompositionVertex]#
The vertices, in increasing
idorder.
- property edges: List[CompositionEdge]#
The edges, ordered by their endpoint ids.
- getVertex(id)#
The vertex with the given composite id, or
Noneif absent.- Parameters:
id (int)
- Return type:
CompositionVertex | None
- getEdge(source, target)#
The edge between two vertex ids (either order), or
Noneif absent.- Parameters:
- Return type:
CompositionEdge | None