molfoundry.RuleVertex#

class molfoundry.RuleVertex(class_ref, *args)#

One vertex of a rule’s span, identified by its rule node id.

left and right are the vertex as matched and as produced. A side is None when the rule does not have the vertex there: left is None for a created vertex, right for a deleted one.

Parameters:

class_ref (Any)

property id: int#
property membership: Membership#
property left: RuleVertexSide | None#
property right: RuleVertexSide | None#
property leftLabel: str | None#

The left-side label, or None when the rule creates the vertex.

property rightLabel: str | None#

The right-side label, or None when the rule deletes the vertex.

property isContext: bool#
property isChanged: bool#
property isCreated: bool#
property isDeleted: bool#
property isPreserved: bool#

Present on both sides – pure context or relabeled, not created/deleted.

property changesLabel: bool#

Preserved but with a different label on each side (ignoring stereo).