Java program for generating random network topologies as graphs.