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
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.