finished random graph generator