molfoundry.ConditionExists#
- class molfoundry.ConditionExists(vertices, edges, condition)#
Bases:
objectThe match extends to a larger pattern (GML
exists) on whichconditionholds.The pattern is given by what it adds:
verticesandedgesbeyond the rule’s left side (or the enclosingexists’s pattern, when nested).- Parameters:
vertices (Tuple[ConditionVertex, ...])
edges (Tuple[ConditionEdge, ...])
condition (ConditionTrue | ConditionExists | ConditionNot | ConditionAnd | ConditionOr | AdjacencyConstraint | LabelAnyConstraint | ShortestPathConstraint | NoEdgeConstraint)
- vertices: Tuple[ConditionVertex, ...]#
- edges: Tuple[ConditionEdge, ...]#
- condition: ConditionTrue | ConditionExists | ConditionNot | ConditionAnd | ConditionOr | AdjacencyConstraint | LabelAnyConstraint | ShortestPathConstraint | NoEdgeConstraint#
- property children: Tuple[ConditionTrue | ConditionExists | ConditionNot | ConditionAnd | ConditionOr | AdjacencyConstraint | LabelAnyConstraint | ShortestPathConstraint | NoEdgeConstraint, ...]#