Added ability to load graph from file