A simple graph generator.