Node

Node#

class braincell.Node(id, kind, roles, density_mech, point_mech)[source]#

Point-space thin view of one or more CV-local positions.

Variables:
  • id (int) – Stable node index within the node tree.

  • kind ({"mid", "boundary"}) – Whether this node is a pure midpoint node or a boundary node formed by collapsing one or more CV-local boundary roles.

  • roles (tuple of NodeRole) – Provenance back to the CV-local positions that define this node.

  • density_mech (tuple of Density) – Density declarations visible at this node. In the current lowering model these are carried by midpoint nodes.

  • point_mech (tuple of Point) – Point-mechanism declarations assigned to this node.

property source_cv_ids: tuple[int, ...]#

Return sorted source CV ids contributing to this node.

Returns:

Unique source CV ids in ascending order.

Return type:

tuple of int