Function Repository Resource:

SubstitutionSystemRulePlot

Source Notebook

Generate the rule icon for a one-dimensional neighbor-independent substitution system

Contributed by: Stephen Wolfram and Jan Mangaldan

ResourceFunction["SubstitutionSystemRulePlot"][rules]

generates a plot representing a substitution system specified by rules.

Details

ResourceFunction["SubstitutionSystemRulePlot"] takes the same options as RulePlot.
Possible settings for the Appearance option include "Array", "Arrow" and "Tree".

Examples

Basic Examples (1) 

Show the rule icon for a substitution system:

In[1]:=
ResourceFunction[
 "SubstitutionSystemRulePlot"][{1 -> {1, 0, 0}, 0 -> {0, 1}}]
Out[1]=

Scope (1) 

Use a string substitution system:

In[2]:=
ResourceFunction[
 "SubstitutionSystemRulePlot"][{"\[EmptyCircle]" -> "\[EmptyCircle]\[FilledSquare]", "\[FilledSquare]" -> "\[FilledSquare]\[EmptyCircle]"}]
Out[2]=

Options (2) 

Appearance (2) 

Show the rule as an array:

In[3]:=
ResourceFunction[
 "SubstitutionSystemRulePlot"][{0 -> {0, 0, 0}, 1 -> {1, 0, 1}}, Appearance -> "Array"]
Out[3]=

Show the rule as a tree:

In[4]:=
ResourceFunction[
 "SubstitutionSystemRulePlot"][{0 -> {0, 0, 0}, 1 -> {1, 0, 1}}, Appearance -> "Tree"]
Out[4]=

Version History

  • 1.0.0 – 21 June 2021

Related Resources

License Information