code: public static DirectedGraph<Integer, DefaultEdge> loadGraph(String location)
  			throws IOException, ClassNotFoundException {
  		File file = new File(location);
  		if (!file.canWrite()) {
  			throw new IOException("Cannot read from file " + location);
  		}
  		return GraphSerialization.loadGraph(file);
  	}
docs: Deserializes a {@link SerializableDirectedGraph} object that is stored in the
  given location. This method returns the {@link DirectedGraph} object, that is wrapped
  in the {@link SerializableDirectedGraph}.
  
  @param location Must not be {@code null} and a valid file path.
  @return The {@link DirectedGraph} object, that is wrapped in the
  {@link SerializableDirectedGraph}.
  @throws IOException Thrown if errors occurred on the IO level.
  @throws ClassNotFoundException Thrown if a class could not be find while deserialization.