pyphi.partition.directed_bipartition_indices#

pyphi.partition.directed_bipartition_indices(N)[source]#

Return indices for directed bipartitions of a sequence.

Parameters:

N (int) – The length of the sequence.

Returns:

list – A list of tuples containing the indices for each of the two parts.

Return type:

list[tuple[tuple[int, …], tuple[int, …]]]

Examples

>>> N = 3
>>> directed_bipartition_indices(N)
    [((), (0, 1, 2)),
     ((0,), (1, 2)),
     ((1,), (0, 2)),
     ((0, 1), (2,)),
     ((2,), (0, 1)),
     ((0, 2), (1,)),
     ((1, 2), (0,)),
     ((0, 1, 2), ())]