allsigs={{11},{12},{13},{22},{11,11},{14},{23},{11,12},{12,11},{15},{24},{33},{11,13},{13,11},{11,22},{12,12},{12,21},{21,12},{22,11},{11,11,11},{16},{25},{34},{11,14},{14,11},{11,23},{12,13},{12,31},{13,12},{13,21},{21,13},{23,11},{31,12},{12,22},{22,12},{11,11,12},{11,12,11},{12,11,11}};
In[]:=
MultiwaySystem[{"A""AA","A""B"},"A",5]
In[]:=
{{A},{AA,B},{AAA,AB,BA},{AAAA,AAB,ABA,BAA,BB},{AAAAA,AAAB,AABA,ABAA,ABB,BAAA,BAB,BBA},{AAAAAA,AAAAB,AAABA,AABAA,AABB,ABAAA,ABAB,ABBA,BAAAA,BAAB,BABA,BBAA,BBB}}
Out[]=
gm=MultiwaySystem[{"A""AA","A""B"},"A",5,"StatesGraph"]
In[]:=
Out[]=
VertexList[gm]
In[]:=
{A,AA,B,AAA,AB,BA,AAAA,AAB,ABA,BAA,BB,AAAAA,AAAB,AABA,ABAA,ABB,BAAA,BAB,BBA,AAAAAA,AAAAB,AAABA,AABAA,AABB,ABAAA,ABAB,ABBA,BAAAA,BAAB,BABA,BBAA,BBB}
Out[]=
GraphNeighborhoodVolumes[gm,{"A"},Automatic]
In[]:=
A{1,3,6,11,19,32}
Out[]=
GraphNeighborhoodVolumes[MultiwaySystem[{"A""AA","A""B"},"A",10,"StatesGraph"],{"A"},Automatic]
In[]:=
A{1,3,6,11,19,32,53,87,142,231,375}
Out[]=
Basic function:
Basic function:
MWGrowth[rule_,inits_,t_Integer]:=GraphNeighborhoodVolumes[MultiwaySystem[rule,inits,t,"StatesGraph"],inits,Automatic]
In[]:=
EnumerateSubstitutionSystemRules[{11,12},2]
In[]:=
Out[]=
ParallelMapMonitored[MWGrowth[#,StringTuples["AB",3],15]&,EnumerateSubstitutionSystemRules[{11,12},2]]
In[]:=
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 65)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 68)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 67)
Out[]=
ParallelMapMonitored[#({#,Differences[#],Ratios[#]}&[MeanAround/@Transpose[Values[MWGrowth[#,StringTuples["AB",3],15]]]])&,EnumerateSubstitutionSystemRules[{11,12},2]]
In[]:=
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 65)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 68)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 67)
Out[]=
Last[%524]
In[]:=
Out[]=
If[Length[#[[2,1]]]<5,Nothing,First[#](ListPlot[#,PlotTheme"Minimal",PlotRange{0,Automatic},Ticks{None,Automatic}]&/@Last[#])]&/@%524
In[]:=
Out[]=
ParallelEvaluate[Off[BreadthFirstScan::inv]]
In[]:=
{Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null,Null}
Out[]=
Map[If[Length[#[[2,1]]]<5,Nothing,First[#](ListPlot[#,PlotTheme"Minimal",PlotRange{0,Automatic},Ticks{None,Automatic}]&/@Last[#])]&/@ParallelMapMonitored[TimeConstrained[#({#,Differences[#],Ratios[#]}&[MeanAround/@Transpose[Values[MWGrowth[#,StringTuples["AB",3],15]]]]),15]&,EnumerateSubstitutionSystemRules[#,2]]]&/@Take[allsigs,3]
In[]:=
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 68)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 68)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 67)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 65)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 61)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 68)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 63)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 62)
BreadthFirstScan::inv:The argument BBB in is not a valid vertex.
(kernel 65)
During evaluation of In[537]:=
{Map[{}],Map[{}],Map[{}]}
Out[]=
allsigs
In[]:=
Out[]=
ParallelMapMonitored[TimeConstrained[#({#,Differences[#],Ratios[#]}&[MeanAround/@Transpose[Values[MWGrowth[#,StringTuples["AB",3],15]]]]),15]&,EnumerateSubstitutionSystemRules[{12},2]]
In[]:=
{{AAA}{{0.88±0.13},{},{}},{AAB}{{0.88±0.13},{},{}},{ABB}{{0.88±0.13},{},{}}}
Out[]=
CellPrint[ExpressionCell[(If[Length[#[[2,1]]]<5,Nothing,First[#](ListPlot[#,PlotTheme"Minimal",PlotRange{0,Automatic},Ticks{None,Automatic}]&/@Last[#])]&/@ParallelMapMonitored[TimeConstrained[#({#,Differences[#],Ratios[#]}&[MeanAround/@Transpose[Values[MWGrowth[#,StringTuples["AB",3],15]]]]),5]&,EnumerateSubstitutionSystemRules[#,2]]),"Output"]]&/@Take[allsigs,5];
In[]:=
{}
{}
{}
{}
{}
CellPrint[ExpressionCell[(If[Length[#[[2,1]]]<5,Nothing,First[#](ListPlot[#,PlotTheme"Minimal",PlotRange{0,Automatic},Ticks{None,Automatic}]&/@Last[#])]&/@ParallelMapMonitored[TimeConstrained[#({#,Differences[#],Ratios[#]}&[MeanAround/@Transpose[Values[MWGrowth[#,StringTuples["AB",3],15]]]]),5]&,EnumerateSubstitutionSystemRules[#,2]]),"Output"]]&/@Drop[allsigs,5];
In[]:=
{}
{}
{}
{}
{}
{}
{}
{}
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 82)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 83)
{}
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 82)
{}
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 83)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 82)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 84)
{}
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 70)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 78)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 70)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 80)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 84)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 82)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 84)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 70)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 83)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 82)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 76)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with sequential evaluation.
(kernel 80)
ParallelMap::subpar:Parallel computations cannot be nested; proceeding with s