molfoundry.AdjacencyConstraint#
- class molfoundry.AdjacencyConstraint(id, op, count, nodeLabels=None, edgeLabels=None)#
Bases:
objectVertex
idhasopcountneighbors (GMLconstrainAdj).Only neighbors whose label is in
nodeLabels, joined by an edge whose label is inedgeLabels, are counted;Nonecounts any.- Parameters:
- op: ConstraintOp#
- property children: Tuple[ConditionTrue | ConditionExists | ConditionNot | ConditionAnd | ConditionOr | AdjacencyConstraint | LabelAnyConstraint | ShortestPathConstraint | NoEdgeConstraint, ...]#