andrey.SummaryGraph#
- class andrey.SummaryGraph[source]#
The lags of a
TemporalStructuremerged into one directed graph over the variables.Get one from
TemporalStructure.summary_graph(). It is aGraphStructurewithkind="digraph":i -> jmeansX_iaffectsX_jat one or more lags, soi -> jat one lag andj -> iat another form a 2-cycle, and a variable’s effect on its own future is a self-loop.lags_of(i, j)andedge_lagsgive the lags behind each edge. EveryGraphStructureview applies.from_numpy,from_edges,from_networkx, andfrom_pcalgraiseTypeError, because a plain graph carries no lags; build a plain graph withGraphStructure’s.StructureOutput.saveraisesTypeErrorfor aSummaryGraph; save theTemporalStructureand callsummary_graph()again after loading.- property edge_lags: tuple[tuple[int, int, tuple[int, ...]], ...]#
Every edge with its lags, as
(i, j, lags)triples sorted by(i, j).