WOLFRAM NOTEBOOK

General k=2, r=2 rules

In[]:=
ltk2r2=
;
This is reduced in counts by canonical reduction of genotypes
In[]:=
ListLogPlot[Length/@GroupBy[Normal[ltk2r2],Last->First],PlotRange->All]
Out[]=
In[]:=
Lengthltk2r2=
Out[]=
2651

lifetimes (simple)

In[]:=
ltk2r2=
;
In[]:=
BinaryMutationDistance[{r1_,m1_},{r2_,m2_},resample_:Identity]:=DigitCount[resample[BitAnd[BitAnd[BitXor[r1,r2],m1],m2]],2,1]
In[]:=
AbsoluteTiming[Apply[BinaryMutationDistance,RandomSample[Keys[ltk2r2],2]]][[1]]*Length[ltk2r2]^2
Out[]=
3837.18
In[]:=
AbsoluteTiming[g0=NearestNeighborGraph[Keys[ltk2r2],DistanceFunction->Function[BinaryMutationDistance[#1,#2]]];]
Out[]=
{171.866,Null}

need to figure out times

In[]:=
AbsoluteTiming[res1=EvolutionaryMultiwayGraph[ltk2r2,GraphLayout->"LayeredDigraphEmbedding","DistanceFunction"->Function[BinaryMutationDistance[#1,#2]],AspectRatio->1];VertexCount@%]
Out[]=
{169.156,VertexCount[Null]}
In[]:=
#[res1]&/@{VertexCount,EdgeCount}
Out[]=
{2052,3226}
In[]:=
WeaklyConnectedGraphComponents[res1]
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
In[]:=
addVertexFigures[#,ltk2r2,VertexSize->1/3,EdgeStyle->Gray]&/@Drop
,2
Out[]=
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,

To do

Start with null graph and try to grow to the full k=2, r=2 multway graph
Consider the symmetry k=3, r=1 case

Questions

What are the rules unreachable from the null rule by single point mutations? [These need the system to preserve “non winners”, and perhaps go through nonfinite lifetime cases]
[If we did enough mutations at the same time we can obviously get anywhere]

Lifetime tagging

Note : there are a lot of dead ends.

To do: make width-lifetime rectangles for each node

Question: what is the distribution of lifetimes after adaptive evolution?

Full (99%?) graph

Number of phenotypes per vertex:
Ones that (can) take the most intermediate steps to reach:
COMPARE WITH:
These are also the cases where there are the largest number of phenotypes per vertex ... presumably because with more phenotypes there’s more catchment
Map of common ancestry:

Which parts of the graph are made inaccessible by what edges being cut?
AKA what are the most important nodes/“highways” on the graph?

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.