A simple script that generates svg files with Collatz graphs for any given limit of numbers.
First, make sure you have the latest distribuition of Graphviz installed (check https://graphviz.org/download/ case you don't).
Once you got all done, run it like the following:
py collatz_graph.py -n [the limit number, default is 20] -p [layout mode (check Graphviz docs on it)] Running the following from your command line
py collatz_graph.py -n 15 You should get something like this
Code credits to https://martin-thoma.com/the-collatz-sequence/