FixedPointGraph
inverseCollatz
In[]:=
NestTree[inverseCollatz,1,10]
Out[]=
In[]:=
NestTree[anticollatz,1,10]
Out[]=
In[]:=
NestGraph[anticollatz,1,10]===EdgeDelete[NestGraph[inverseCollatz,1,10],21]
Out[]=
True
NestTreeInteractive uses a in similar to how you use inside . Unfortunately, resets when the notebook is closed because of a dynamic scoping issue I haven’t found a solution for.