Added reading graph from file.