edu.uci.ics.jung.io.GraphFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jung-io Show documentation
Show all versions of jung-io Show documentation
IO support classes for JUNG
The newest version!
/*
* Copyright (c) 2003, The JUNG Authors
*
* All rights reserved.
*
* This software is open-source under the BSD license; see either
* "license.txt" or
* https://github.com/jrtom/jung/blob/master/LICENSE for a description.
*/
/*
* Created on Jan 6, 2002
*
*/
package edu.uci.ics.jung.io;
import edu.uci.ics.jung.graph.Graph;
/**
* General interface for loading and saving a graph from/to disk.
* @author Scott
* @author Tom Nelson - converted to jung2
*
*/
public interface GraphFile {
/**
* Loads a graph from a file per the appropriate format
* @param filename the location and name of the file
* @return the graph
*/
Graph load(String filename);
/**
* Save a graph to disk per the appropriate format
* @param graph the location and name of the file
* @param filename the graph
*/
void save(Graph graph, String filename);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy