molfoundry.NoEdgeConstraint#

class molfoundry.NoEdgeConstraint(source, target, implied=False)#

Bases: object

No edge joins source and target (GML constrainNoEdge).

implied is True when the constraint only restates that the rule creates this edge – a graph cannot hold two edges between the same vertices, so the edge must not be there yet. Loading a rule adds one such constraint per created edge; the rule’s GML leaves them out.

Parameters:
source: int#
target: int#
implied: bool = False#
property children: Tuple[ConditionTrue | ConditionExists | ConditionNot | ConditionAnd | ConditionOr | AdjacencyConstraint | LabelAnyConstraint | ShortestPathConstraint | NoEdgeConstraint, ...]#