Created read and print functions for undirected graphs
moved read functions to graph class