We plot a graph in Java.
A glance at the source code reveals some similarity with C++.
The source.