added loading of graphs from file