molfoundry.IncidenceCount#
- class molfoundry.IncidenceCount(op, count, nodeLabels=None, edgeLabels=None, edgeWeights=None)#
Bases:
_ConditionThe edges at a vertex number
opcount: a leaf of a condition.Only edges whose label is in
edgeLabels, to a neighbor whose label is innodeLabels, are counted;Nonecounts any (an unlabeled edge of an electron graph has no label in any list). Each counted edge adds its weight fromedgeWeights, a mapping from edge label to weight, or 1 for a label not listed, so a degree is a count without weights and a valence one with bond orders as weights. Weights must not be negative.opis aConstraintOpor its symbol ("<=").- Parameters:
- property op: ConstraintOp#