spmviz.networks.transition_graph#

spmviz.networks.transition_graph(db, min_count=1, start_end=True, self_loops=True)[source]#

Directly-follows graph (first-order transitions; process mining DFG, Markov chain).

Edge a → b counts the pairs of consecutive elements with a in the first and b in the second (an element with several items contributes all pairs). With start_end the artificial nodes "▶" and "$" mark the first and last elements. Edge attributes: count, probability (row-normalized), n_sequences (sequences containing the transition); node attributes: count (occurrences), n_sequences.

Examples using spmviz.networks.transition_graph#

Transition graphs, matrices and MatrixWave

Transition graphs, matrices and MatrixWave