minor changes to gen_graph just for testing