Implemented loading of graphs.