pyphi.connectivity.is_full#

pyphi.connectivity.is_full(cm, nodes1, nodes2)[source]#

Test connectivity of one set of nodes to another.

Parameters:
  • cm (np.ndarray) – The connectivity matrix.

  • nodes1 (tuple[int]) – The nodes whose outputs to nodes2 will be tested.

  • nodes2 (tuple[int]) – The nodes whose inputs from nodes1 will be tested.

Returns:

bool – True if all elements in nodes1 output to some element in nodes2 and all elements in nodes2 have an input from some element in nodes1, or if either set of nodes is empty; False otherwise.

Return type:

bool