Interface GraphFile<V,​E>

  • All Known Implementing Classes:
    MatrixFile

    public interface GraphFile<V,​E>
    General interface for loading and saving a graph from/to disk.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      edu.uci.ics.jung.graph.Graph<V,​E> load​(java.lang.String filename)
      Loads a graph from a file per the appropriate format
      void save​(edu.uci.ics.jung.graph.Graph<V,​E> graph, java.lang.String filename)
      Save a graph to disk per the appropriate format
    • Method Detail

      • load

        edu.uci.ics.jung.graph.Graph<V,​E> load​(java.lang.String filename)
        Loads a graph from a file per the appropriate format
        Parameters:
        filename - the location and name of the file
        Returns:
        the graph
      • save

        void save​(edu.uci.ics.jung.graph.Graph<V,​E> graph,
                  java.lang.String filename)
        Save a graph to disk per the appropriate format
        Parameters:
        graph - the location and name of the file
        filename - the graph