molfoundry.AdjacencyConstraint#

class molfoundry.AdjacencyConstraint(id, op, count, nodeLabels=None, edgeLabels=None)#

Bases: object

Vertex id has op count neighbors (GML constrainAdj).

Only neighbors whose label is in nodeLabels, joined by an edge whose label is in edgeLabels, are counted; None counts any.

Parameters:
id: int#
op: ConstraintOp#
count: int#
nodeLabels: Tuple[str, ...] | None = None#
edgeLabels: Tuple[str, ...] | None = None#
property children: Tuple[ConditionTrue | ConditionExists | ConditionNot | ConditionAnd | ConditionOr | AdjacencyConstraint | LabelAnyConstraint | ShortestPathConstraint | NoEdgeConstraint, ...]#