First version of graph generator