implemented generate graph with no parameters.