let gengraph make the whole graph