Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Obtain the graph of an iterative computation to a fixed point
ResourceFunction["FixedPointGraph"][f,expr] gives the graph obtained by starting with expr and applying f until a fixed point is reached. | |
ResourceFunction["FixedPointGraph"][f,{expr1,expr2,…}] gives the graph obtained by applying f to expr1,expr2,…. | |
ResourceFunction["FixedPointGraph"][f,…,max] applies f at most max times. |
Generate a cycle graph:
| In[1]:= |
| Out[1]= | ![]() |
Generate a torus graph:
| In[2]:= |
| Out[2]= | ![]() |
Check graph isomorphism to TorusGraph:
| In[3]:= |
| Out[3]= |
The graph of a bifurcating integer calculation toward zero:
| In[4]:= |
| Out[4]= | ![]() |
Set a limit for an unbounded calculation:
| In[5]:= |
| Out[5]= |
Iterate through floating point approximations to Sqrt[2]:
| In[6]:= |
| Out[6]= |
Count the number of steps needed:
| In[7]:= |
| Out[7]= |
Graph different approaches to sorting characters in a string:
| In[8]:= | ![]() |
| Out[8]= | ![]() |
Verify the result is sorted:
| In[9]:= |
| Out[9]= |
Add styles to vertices and edges:
| In[10]:= | ![]() |
| Out[10]= | ![]() |
Compare to CayleyGraph:
| In[11]:= |
| Out[11]= | ![]() |
Find the relation between integer Tuples when applying RotateRight:
| In[12]:= |
| Out[12]= | ![]() |
Consider states equivalent by their Total:
| In[13]:= |
| Out[13]= | ![]() |
Choose a different canonical form by adding "SortFunction":
| In[14]:= | ![]() |
| Out[14]= | ![]() |
Another way to achieve the same result:
| In[15]:= | ![]() |
| Out[15]= | ![]() |
Investigate different trajectories of a sorting algorithm:
| In[16]:= | ![]() |
| Out[16]= | ![]() |
Calculate complexity statistics over all different computational paths:
| In[17]:= |
| Out[17]= | ![]() |
If the first argument doesn't branch, throughput data can get confused:
| In[18]:= |
| Out[18]= | ![]() |
To be certain of a good result, put the iterator into a single-element list:
| In[19]:= |
| Out[19]= | ![]() |
Calculate a symmetry-reduced game graph for Tic-tac-toe:
| In[20]:= | ![]() |
| Out[20]= | ![]() |
| In[21]:= | ![]() |
| Out[21]= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License