Skip to content

Commit 87a9221

Browse files
committed
Add explicit heads
1 parent 04ccbfc commit 87a9221

12 files changed

+30
-22
lines changed

Documentation/Generators/GenerateMultihistory.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
2323

2424
<img src="/Documentation/Images/GenerateMultihistoryExample.png"
2525
width="478.2"
26-
alt="Out[] = ... {1, 2} -> {3 (* token 5 *)}, {2, 1} -> {3 (* token 6 *)}, {1, 3 (* init *)} -> {4}, <<7>> ...">
26+
alt="Out[] = Graph[...
27+
{1, 2} -> {3 (* token 5 *)}, {2, 1} -> {3 (* token 6 *)}, {1, 3 (* init *)} -> {4}, <<7>>
28+
...]">

Documentation/Generators/GenerateSingleHistory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
2222

2323
<img src="/Documentation/Images/GenerateSingleHistoryExample.png"
2424
width="478.2"
25-
alt="Out[] = ...
25+
alt="Out[] = Graph[...
2626
token-event graph where all tokens have out degrees less or equal than 1:
2727
{1, 2 (* init *)} -> {3, -1, 2 (* gen 1 *)},
2828
{3, -1} -> {2 (* gen 2 *), 4 (* gen 2 *), -3},
2929
{2 (* gen 1 *), 2 (* gen 2 *)} -> {4 (* gen 3 sum *), 0, 4 (* gen 3 product *)},
3030
<<7>>
31-
...">
31+
...]">
3232

3333
Note that there is a distinction between single-history and single-path systems. Single-path systems are defined as ones
3434
where there is only one event possible from every state. A Turing machine would be an example of a single-path system.

Documentation/Generators/MaxDestroyerEvents.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
1212

1313
<img src="/Documentation/Images/MaxDestroyerEvents1.png"
1414
width="322.2"
15-
alt="Out[] = ... {1, 2} -> {3 (* gen 1 *)}, {3 (* init *), 3 (* gen 1 *)} -> 6 ...">
15+
alt="Out[] = Graph[... {1, 2} -> {3 (* gen 1 *)}, {3 (* init *), 3 (* gen 1 *)} -> 6 ...]">
1616

1717
If unset (which defaults to [`Infinity`](https://reference.wolfram.com/language/ref/Infinity.html)), it will generate a
1818
full multihistory object subject to other selection and stopping parameters:
@@ -26,7 +26,7 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
2626

2727
<img src="/Documentation/Images/MaxDestroyerEventsInfinity.png"
2828
width="478.2"
29-
alt="Out[] = ... {1, 2} -> {3 (* 1 + 2 *)}, {2, 1} -> {3 (* 2 + 1 *)}, {1, 3 (* init *)} -> {4}, <<3>> ...">
29+
alt="Out[] = Graph[... {1, 2} -> {3 (* 1 + 2 *)}, {2, 1} -> {3 (* 2 + 1 *)}, {1, 3 (* init *)} -> {4}, <<3>> ...]">
3030

3131
If set to a finite number, it will generate a partial multihistory:
3232

@@ -38,6 +38,6 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
3838

3939
<img src="/Documentation/Images/MaxDestroyerEvents5.png"
4040
width="478.2"
41-
alt="Out[] = ... token-event graph containing tokens with out degrees up to 5 ...">
41+
alt="Out[] = Graph[... token-event graph containing tokens with out degrees up to 5 ...]">
4242

4343
Note that results generally depend on the event order in this case, similar to single histories.

Documentation/Generators/MaxEvents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ In[] := #["ExpressionsEventsGraph"] & @
1111

1212
<img src="/Documentation/Images/MaxEventsExample.png"
1313
width="478.2"
14-
alt="Out[] = ... token-event graph with 9 events ...">
14+
alt="Out[] = Graph[... token-event graph with 9 events ...]">
1515

1616
Compare to [`MaxGeneration`](MaxGeneration.md), which controls the depth of the evaluation instead.

Documentation/Generators/MaxGeneration.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ In[] := #["ExpressionsEventsGraph",
2121

2222
<img src="/Documentation/Images/TokenEventGraphGenerations.png"
2323
width="444.6"
24-
alt="Out[] = ... token-event graph with 9 tokens arranged in 3 layers, and 3 events in 2 layers in between ...">
24+
alt="Out[] = Graph[...
25+
token-event graph with 9 tokens arranged in 3 layers, and 3 events in 2 layers in between
26+
...]">
2527

2628
Restricting the number of generations to one will prevent the last two events from occurring. Note, however, that
2729
another event is created instead:
@@ -34,7 +36,7 @@ In[] := #["ExpressionsEventsGraph"] & @ SetReplaceTypeConvert[WolframModelEvolut
3436

3537
<img src="/Documentation/Images/MaxGeneration.png"
3638
width="478.2"
37-
alt="Out[] = ... token-event graph with 2 layers of tokens and a single layer of events ...">
39+
alt="Out[] = Graph[... token-event graph with 2 layers of tokens and a single layer of events ...]">
3840

3941
`MaxGeneration` is an event selection parameter, not a stopping condition. That is, the evolution of the system won't
4042
stop if a match (tentative event) with a generation greater than the constraint is encountered. Instead, it will ignore

Documentation/Generators/MinEventInputs.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
1414

1515
<img src="/Documentation/Images/MinEventInputs0.png"
1616
width="367.8"
17-
alt="Out[] = ... {} -> {0}, {1 (* init *)} -> {1 (* gen 1 *)}, {2 (* init *)} -> {2 (* gen 1 *)}, <<7>> ...">
17+
alt="Out[] = Graph[...
18+
{} -> {0}, {1 (* init *)} -> {1 (* gen 1 *)}, {2 (* init *)} -> {2 (* gen 1 *)}, <<7>>
19+
...]">
1820

1921
and `MinEventInputs -> 2`:
2022

@@ -27,4 +29,4 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
2729

2830
<img src="/Documentation/Images/MinEventInputs2.png"
2931
width="478.2"
30-
alt="Out[] = ... {1, 2} -> {3 (* 1 + 2 *)}, {2, 1} -> {3 (* 2 + 1 *)}, {1, 3 (* init *)} -> {4}, <<7>> ...">
32+
alt="Out[] = Graph[... {1, 2} -> {3 (* 1 + 2 *)}, {2, 1} -> {3 (* 2 + 1 *)}, {1, 3 (* init *)} -> {4}, <<7>> ...]">

Documentation/Generators/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
2828

2929
<img src="/Documentation/Images/MultisetSubstitutionSystemExample.png"
3030
width="444.6"
31-
alt="Out[] = ... {1, 2} -> {3 (* gen 1 *)}, {3 (* init *), 4} -> {7}, {3 (* gen 1 *), 7} -> {10} ...">
31+
alt="Out[] = Graph[... {1, 2} -> {3 (* gen 1 *)}, {3 (* init *), 4} -> {7}, {3 (* gen 1 *), 7} -> {10} ...]">
3232

3333
We can also use a more general [`GenerateMultihistory`](GenerateMultihistory.md) and specify
3434
[`MaxDestroyerEvents`](MaxDestroyerEvents.md) manually.
@@ -42,13 +42,13 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
4242

4343
<img src="/Documentation/Images/MultisetSubstitutionSystemPartialMultihistory.png"
4444
width="478.2"
45-
alt="Out[] = ...
45+
alt="Out[] = Graph[...
4646
{1, 2} -> {3 (* gen 1 *)},
4747
{1, 3 (* init *)} -> {4 (* gen 1 *)},
4848
{2, 3 (* init *)} -> {5},
4949
{3 (* gen 1 *), 4 (* init *)} -> {7},
5050
{4 (* init *), 5} -> {9}
51-
...">
51+
...]">
5252

5353
The same generators support multiple systems. In addition to
5454
[`MultisetSubstitutionSystem`](/Documentation/Systems/MultisetSubstitutionSystem.md), other examples include

Documentation/Systems/AtomicStateSystem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
1111

1212
<img src="/Documentation/Images/AtomicStateSystemExample.png"
1313
width="858.6"
14-
alt="Out[] = ... 0 -> Rule 1 -> 1, 0 -> Rule 2 -> -1, 1 -> Rule 1 -> 2, <<26>>, -3 -> Rule 2 -> -4 ...">
14+
alt="Out[] = Graph[... 0 -> Rule 1 -> 1, 0 -> Rule 2 -> -1, 1 -> Rule 1 -> 2, <<26>>, -3 -> Rule 2 -> -4 ...]">
1515

1616
Note that spacelike separation is not possible in the `AtomicStateSystem`. As a result, branching due to overlaps of
1717
different subsets of input tokens cannot occur. And, since events cannot produce branchlike-separated outputs and there

Documentation/Systems/MultisetSubstitutionSystem.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
2424

2525
<img src="/Documentation/Images/MultisetSubstitutionSystemExample.png"
2626
width="444.6"
27-
alt="Out[] = ... {1, 2} -> {3 (* gen 1 *)}, {3 (* init *), 4} -> {7}, {3 (* gen 1 *), 7} -> {10} ...">
27+
alt="Out[] = Graph[... {1, 2} -> {3 (* gen 1 *)}, {3 (* init *), 4} -> {7}, {3 (* gen 1 *), 7} -> {10} ...]">
2828

2929
Arbitrary Wolfram Language patterns are supported including
3030
[conditions](https://reference.wolfram.com/language/ref/Condition.html) such as `{a_ /; a > 0, b_}` and
@@ -42,10 +42,10 @@ In[] := #["ExpressionsEventsGraph", VertexLabels -> Placed[Automatic, After]] &
4242

4343
<img src="/Documentation/Images/MultisetSubstitutionSystemConditionsAndSequences.png"
4444
width="478.2"
45-
alt="Out[] = ...
45+
alt="Out[] = Graph[...
4646
generation 1: {1, 2} -> {3}, {1, 4} -> {5}, {2, 3} -> {5}, {3, 4} -> {7}, {1, 2, 4} -> {7},
4747
generation 2: {2, 5} -> {7}, {3 (* gen 1 *), 4} -> {7}
48-
...">
48+
...]">
4949

5050
Note, however, that the system cannot recognize if the code on the right-hand side is nondeterministic, so only the
5151
first output will be used for each assignment of pattern variables.

Documentation/TypeSystem/$SetReplaceTypeGraph.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ In[] := $SetReplaceTypeGraph
1010

1111
<img src="/Documentation/Images/$SetReplaceTypeGraph.png"
1212
width="787.8"
13-
alt="Out[] = ...
13+
alt="Out[] = Graph[...
1414
AtomicStateSystem v0 -> MultisetSubstitutionSystem v0,
1515
MultisetSubstitutionSystem v0 -> WolframModelEvolutionObject v2
16-
...">
16+
...]">
1717

1818
It is a [`Graph`](https://reference.wolfram.com/language/ref/Graph.html) representation of a directed hypergraph with
1919
types and properties as vertices and implementations of translations and properties as edges.

0 commit comments

Comments
 (0)