slight changes to create_read_graph.c