for a math project I am looking into the collatz conjecture, In my report I would like to alter the algorithm a little and have the tree as an image.
I have the code for the graph here
http://bl.ocks.org/mbostock/4063550#flare.json
and the code for the algorithm is here (last line should have parenthesis)
https://en.wikipedia.org/wiki/File:Collatz-graph-20-iterations.svg
I am truly stuck, because I have no idea how to put the output onto the tree.
Any help would be appreciated.