generator for graph

to be used to test the code