fixed naming problem in  create_graph