WOLFRAM NOTEBOOK

In[]:=
ResourceFunction["StringTuples"]["AB",4]
Out[]=
{AAAA,AAAB,AABA,AABB,ABAA,ABAB,ABBA,ABBB,BAAA,BAAB,BABA,BABB,BBAA,BBAB,BBBA,BBBB}
In[]:=
ResourceFunction["MultiwaySystem"][{"AB"->"BA","BA"->"AB"},ResourceFunction["StringTuples"]["AB",4],5,"StatesGraph"]
Out[]=
In[]:=
ResourceFunction["MultiwaySystem"][{"AB"->"BA","BA"->"AB"},ResourceFunction["StringTuples"]["AB",4],5,"CausalGraph"]
Out[]=
In[]:=
SimpleGraph[ResourceFunction["MultiwaySystem"][{"AB"->"BA","BA"->"AB"},ResourceFunction["StringTuples"]["AB",4],5,"CausalGraph"]]
Out[]=
In[]:=
ResourceFunction["MultiwaySystem"][{"AB"->"BA","BA"->"AB"},"ABBA",4,"StatesGraph"]
Out[]=
In[]:=
SimpleGraph[ResourceFunction["MultiwaySystem"][{"AB"->"BA","BA"->"AB"},ResourceFunction["StringTuples"]["AB",2],5,"CausalGraph"]]
Out[]=
In[]:=
SimpleGraph[ResourceFunction["MultiwaySystem"][{"AB"->"BA","BA"->"AB"},ResourceFunction["StringTuples"]["AB",3],5,"CausalGraph"]]
Out[]=
In[]:=
SimpleGraph[ResourceFunction["MultiwaySystem"][{"AB"->"BA","BA"->"AB"},ResourceFunction["StringTuples"]["AB",4],5,"CausalGraph"]]
Out[]=
In[]:=
SimpleGraph[ResourceFunction["MultiwaySystem"][{"AB"->"BA","BA"->"AB"},ResourceFunction["StringTuples"]["AB",2],5,"EvolutionCausalGraph"]]
Out[]=

Path counting

How many ways are there to get from this configuration to that? Without deduplication, there might easily be an infinite number. After deduplication, these become loops.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.