pyphi.graph#
Bridge between PyPhi value types and graph representations.
Exports static structure (directed graphs over the TPM-inferred causal
connectivity, FactoredTPM.infer_cm; pass connectivity="declared" to
use the substrate’s declared connectivity matrix verbatim) and dynamics (the
two-timeslice dynamic Bayesian network export, which carries each unit’s
conditional probability distribution over its inferred parents).
Functions
|
In-degree per node index. |
|
Whether the substrate graph is acyclic. |
|
Whether the substrate graph is strongly connected (a complex must be). |
|
Out-degree per node index. |
|
All simple cycles as lists of node indices. |
|
Strongly connected components as tuples of node indices. |
|
Build a |
|
Return the substrate's 2-timeslice DBN as a |
|
Return the substrate's 2-timeslice DBN as a plain dict. |
|
Return a node-labeled directed graph over the substrate's connectivity. |
|
Return the substrate graph with per-node state and membership attributes. |
|
Return the chosen connectivity matrix as a node-labeled DataFrame. |
|
Write the substrate graph to a GraphML file. |