Kernel: Python 3
automaton
.weight_series
Compute the sum of all the weights of the behavior. Find weighted distance between initial and final states.
Implementations:
With a tropical weightset: Shortest path algorithm.
Otherwise: Proper applied to the spontaneous version of the automaton, i.e., as if all the labels were replaced by the empty word.
Examples
In [1]:
In a Tropical Semiring
In [2]:
In [3]:
In
In [4]:
In [5]: