compute.network
¶
Functions for computing network-level properties.
- pyphi.compute.network.reachable_subsystems(network, indices, state, **kwargs)¶
A generator over all subsystems in a valid state.
- pyphi.compute.network.subsystems(network, state, **kwargs)¶
Return a generator of all possible subsystems of a network.
Note
Does not return subsystems that are in an impossible state (after conditioning the subsystem TPM on the state of the other nodes).
- pyphi.compute.network.possible_complexes(network, state, **kwargs)¶
Return a generator of subsystems of a network that could be a complex.
This is the just powerset of the nodes that have at least one input and output (nodes with no inputs or no outputs cannot be part of a main complex, because they do not have a causal link with the rest of the subsystem in the previous or next timestep, respectively).
Note
Does not return subsystems that are in an impossible state (after conditioning the subsystem TPM on the state of the other nodes).
- pyphi.compute.network.all_complexes(network, state, parallel_kwargs=None, **kwargs)¶
Return a generator for all complexes of the network.
Note
Includes reducible, zero-\(\Phi\) complexes (which are not, strictly speaking, complexes at all).
- Parameters:
- Yields:
SystemIrreducibilityAnalysis – A
SystemIrreducibilityAnalysis
for eachSubsystem
of theNetwork
.
- pyphi.compute.network.complexes(network, state, **kwargs)¶
Return all irreducible complexes of the network.
- Parameters:
- Yields:
SystemIrreducibilityAnalysis – A
SystemIrreducibilityAnalysis
for eachSubsystem
of theNetwork
, excluding those with \(\Phi = 0\).
- pyphi.compute.network.major_complex(network, state, **kwargs)¶
Return the major complex of the network.
- Parameters:
- Returns:
The
SystemIrreducibilityAnalysis
for theSubsystem
with maximal \(\Phi\).- Return type:
- pyphi.compute.network.condensed(network, state, **kwargs)¶
Return a list of maximal non-overlapping complexes.
- Parameters:
- Returns:
A list of
SystemIrreducibilityAnalysis
for non-overlapping complexes with maximal \(\Phi\) values.- Return type: