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 → bcounts the pairs of consecutive elements withain the first andbin the second (an element with several items contributes all pairs). Withstart_endthe 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.