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);
}

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 ) ; }
deserializes a serializabledirectedgraph object that is stored in the given < br > location . this method returns the directedgraph object , that is wrapped in < br > the serializabledirectedgraph .
