made changes to create_read_graph.c