Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.17 KB

File metadata and controls

28 lines (22 loc) · 1.17 KB

GenerateMultihistory

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}

Out[] = Multihistory[... MultisetSubstitutionSystem v0 ...]

In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] & @
  SetReplaceTypeConvert[WolframModelEvolutionObject] @ multihistory

Out[] = Graph[...
{1, 2} -> {3 (* token 5 *)}, {2, 1} -> {3 (* token 6 *)}, {1, 3 (* init *)} -> {4}, <<7>>
...]