Simple Java Graph Generator