GenerateMultihistory is the most configurable multihistory generator. With no parameters specified, it attempts to
generate all possible histories starting from the initial state. However, it can be configured to generate partial
multihistories and even single histories, although GenerateSingleHistory is more
convenient for that.
For example, for a MultisetSubstitutionSystem:
In[] := multihistory = GenerateMultihistory[
MultisetSubstitutionSystem[{a_, b_} :> {a + b}], MaxDestroyerEvents -> 3, MaxEvents -> 10] @ {1, 2, 3, 4}In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] & @
SetReplaceTypeConvert[WolframModelEvolutionObject] @ multihistory![Out[] = Multihistory[... MultisetSubstitutionSystem v0 ...]](/maxitg/SetReplace/raw/87a92210f27ee7957b64f479e694711e84da8f06/Documentation/Images/MultisetMultihistory.png)
![Out[] = Graph[...
{1, 2} -> {3 (* token 5 *)}, {2, 1} -> {3 (* token 6 *)}, {1, 3 (* init *)} -> {4}, <<7>>
...]](/maxitg/SetReplace/raw/87a92210f27ee7957b64f479e694711e84da8f06/Documentation/Images/GenerateMultihistoryExample.png)