Create a graph by successively applying a function and differently tagging edges corresponding to different outputs
Contributed by:
Nikolay Murzin and Ed Pegg Jr.
Examples
Basic Examples (5)
Make a nested graph with edge coloring:
Use a pure function:
Use a list of initial expressions:
Add a legend to explain colors:
Label the vertex states in a nested graph:
Scope (6)
Edge colorings can be overridden:
Add labels to edges with EdgeLabels and a pattern:
Add edge labels using output index:
Add tooltips to edges:
Make custom edge tags by returning a list of rules (tags will be pairs of the form {key, index}):
Make custom edge tags by returning an association:
Options (4)
StateLabeling (1)
Turn on special vertex shapes:
FormattingFunction (1)
Change the formatting for vertex 31:
RuleStyling (1)
Use custom styles for output values:
PostProcessGraph (1)
If the output is graphics with a legend, it useful to apply some custom function to the graph itself:
Neat Examples (2)
Vertices can be number pairs:
For a remainder graph, to find 2143 (mod 7), start at 0 and follow
(2143) to get remainder 1:
Version History
-
2.0.1
– 03 October 2022
-
2.0.0
– 27 September 2022
-
1.1.0
– 11 January 2022
Related Resources