pyphi.partition.bipartition#
- pyphi.partition.bipartition(seq, nontrivial=False)[source]#
Return a list of bipartitions for a sequence.
- Parameters:
seq (Sequence) – The sequence to partition.
nontrivial (bool, optional) – If
True, omit the first bipartition (the one with an empty part).
- Returns:
list[tuple[tuple, tuple]] – A list of tuples containing each of the two parts.
- Return type:
Examples
>>> bipartition((1,2,3)) [((), (1, 2, 3)), ((1,), (2, 3)), ((2,), (1, 3)), ((1, 2), (3,))]