Fixed and ran gen_graph on whole dataset