Write a program that outputs a graph of the collatz sequence any way you want (ASCII Image Video etc). You have to implement it that way that you can adjust the size of the graph by either the maximum number of nodes or highest number in graph. A boring example here.
Try to present the graph in a creative / insightful way, this is a popularity contest!
Please comment your code / algorithm and post at least one example output in your answer.
Background: Collatz sequence
The Collatz sequence is defined for any natural number
n > 0 by the recursion:
The Collatz conjecture states that the sequence ends in the cycle 1,4,2