pyphi.connectivity#

Functions for determining substrate connectivity properties.

Functions

apply_boundary_conditions_to_cm(...)

Remove connections to or from external nodes.

block_cm(cm)

Return whether cm can be arranged as a block connectivity matrix.

block_reducible(cm, nodes1, nodes2)

Return whether connections from nodes1 to nodes2 are reducible.

causally_significant_nodes(cm)

Return indices of nodes that have both inputs and outputs.

get_inputs_from_cm(index, cm)

Return indices of inputs to the node with the given index.

get_outputs_from_cm(index, cm)

Return indices of the outputs of node with the given index.

is_full(cm, nodes1, nodes2)

Test connectivity of one set of nodes to another.

is_strong(cm[, nodes])

Return whether the connectivity matrix is strongly connected.

is_weak(cm[, nodes])

Return whether the connectivity matrix is weakly connected.

relevant_connections(n, _from, to)

Construct a connectivity matrix.

subadjacency(cm, source[, target])

Return the sub-adjacency matrix for two groups of nodes.