Generate a token-event graph for multicomputational evolution according to particular rules
Contributed by:
Stephen Wolfram and Nikolay Murzin
Examples
Basic Examples (2)
Make a token-event graph of a simple rule:
Multiple rules:
Scope (3)
Make a Wolfram Model-like TokenEventGraph:
Edges are tagged by corresponding input or output list index:
Tag edges with keys by having associations on both sides of a rule:
Options (22)
Mode (1)
Mode of picking tokens can be one of: "Tuples" (default), "OrderedTuples", "Subsets":
TokenDeduplication (3)
Every token is deduplicated by default:
"TokenDeduplication"→False turns off deduplication across time steps:
"TokenDeduplication"→None turns off any deduplication:
EdgeDeduplication (1)
Remove multiedges:
EventDeduplication (3)
Deduplicate events based on a rule:
Deduplicate events based on its "Inputs", "Outputs" or both:
Deduplicate all events:
EventVertices (1)
Exclude event vertices:
StateVertices (1)
Include state vertices:
TokenVertices (1)
Exclude token vertices:
TokenDecompositionFunction (1)
Specify how states are decomposed into a list of tokens:
TokenRecombinationFunction (1)
Specify how tokens are recombined into states (the default is a single state containing the union of all output tokens). Here is an example of making a separate state from each token:
TokenEquivalenceFunction (1)
Specify an equivalence function for tokens:
EventStoreFunction (2)
Change what is stored inside "Event" vertices:
By default, only stepId, ruleId, eventId and positions are stored:
MultiOutputEvents (1)
Whether to split each event with multiple outputs into separate events:
TokenLabeling (1)
Disable custom token labeling:
EventLabeling (1)
Label events by its rule index:
TokenRenderingFunction (1)
Specify rendering for the tokens:
TokenStyleOptions (1)
Provide style options for token boxes:
TokenFrameOptions (1)
Provide frame options for token boxes:
Requirements
Wolfram Language 12.3
(May 2021) or above
Version History
-
3.1.0
– 23 October 2024
-
3.0.0
– 22 April 2024
-
2.2.0
– 14 March 2022
-
2.1.0
– 07 March 2022
-
2.0.0
– 23 February 2022
-
1.2.0
– 15 February 2022
-
1.1.2
– 19 January 2022
Related Resources
Author Notes
Changes in 3.0.0:
- Init now takes an additional level of list, which makes it possible to start from multiple states, with each state having multiple tokens
- bugfix and generalize EventDeduplication