Represents a node in a subsystem. Each node has a unique index, its position in the network’s list of nodes.
Node(subsystem, index, label=None)¶
A node in a subsystem.
Subsystem – The subsystem the node belongs to.
int – The node’s index in the network.
Network – The network the node belongs to.
str – An optional label for the node.
int – The state of this node.
Generate a Marbl for this node TPM.
The indices of nodes which connect to this node.
The indices of nodes that this node connects to.
The set of nodes with connections to this node.
The set of nodes this node has connections to.
The normalized representation of this node’s Markov blanket, conditioned on the fixed state of boundary-condition nodes in the current timestep.
The un-normalized representation of this node’s Markov blanket, conditioned on the fixed state of boundary-condition nodes in the current timestep.
Return whether this node equals the other object.
Two nodes are equal if they belong to the same subsystem and have the same index (their TPMs must be the same in that case, so this method doesn’t need to check TPM equality).
Labels are for display only, so two equal nodes may have different labels.