molfoundry.ConditionExists#

class molfoundry.ConditionExists(vertices, edges, condition)#

Bases: object

The match extends to a larger pattern (GML exists) on which condition holds.

The pattern is given by what it adds: vertices and edges beyond the rule’s left side (or the enclosing exists’s pattern, when nested).

Parameters:
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, ...]#