worked on reading in graph.