Basic graph generator functionality.