pyphi.graph.substrate_to_dbn_dict#
- pyphi.graph.substrate_to_dbn_dict(substrate)[source]#
Return the substrate’s 2-timeslice DBN as a plain dict.
Keys:
"variables"(label -> alphabet size),"edges"(inter-slice(parent, child)pairs, implicitlyt -> t+1), and"cpds"(label ->{"parents": [...], "table": ndarray}). Pure numpy/dict; does not import networkx.