node
¶
Represents a node in a subsystem. Each node has a unique index, its position in the network’s list of nodes.
-
class
pyphi.node.
Node
(subsystem, index, label=None)¶ A node in a subsystem.
-
subsystem
¶ Subsystem – The subsystem the node belongs to.
-
index
¶ int – The node’s index in the network.
-
network
¶ Network – The network the node belongs to.
-
label
¶ str – An optional label for the node.
-
state
¶ int – The state of this node.
-
get_marbl
(normalize=True)¶ Generate a Marbl for this node TPM.
-
input_indices
¶ The indices of nodes which connect to this node.
-
output_indices
¶ The indices of nodes that this node connects to.
-
inputs
¶ The set of nodes with connections to this node.
-
outputs
¶ The set of nodes this node has connections to.
-
marbl
¶ The normalized representation of this node’s Markov blanket, conditioned on the fixed state of boundary-condition nodes in the current timestep.
-
raw_marbl
¶ The un-normalized representation of this node’s Markov blanket, conditioned on the fixed state of boundary-condition nodes in the current timestep.
-
__eq__
(other)¶ 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.
-
to_json
()¶
-