Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Attempt to find a canonical representation for a Wolfram model
ResourceFunction["FindCanonicalWolframModel"][rule] attempts to find a canonical version of the specified Wolfram model rule. | |
ResourceFunction["FindCanonicalWolframModel"][list] attempts to find a canonical version of the specified list of tuples. |
| "Quality" | try to get a true canonicalization |
| "Speed" | get whatever canonicalization can be obtained quickly |
Attempt to find a canonical representation for a given Wolfram model:
| In[1]:= |
| Out[1]= |
Rename nodes and re-sort rules to find a canonical form:
| In[2]:= |
| Out[2]= |
A slightly more complicated case:
| In[3]:= |
| Out[3]= |
FindCanonicalWolframModel can handle any names for elements:
| In[4]:= |
| Out[4]= |
| In[5]:= | ![]() |
| In[6]:= |
| Out[6]= |
| In[7]:= | ![]() |
| In[8]:= |
| Out[8]= | ![]() |
Some random lists of tuples that should have the same canonicalization:
| In[9]:= |
| In[10]:= |
| Out[11]= | ![]() |
The canonical forms are all identical:
| In[12]:= |
| Out[12]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License