/*
 * Copyright (c) 2003, the JUNG Project and the Regents of the University 
 * of California
 * All rights reserved.
 *
 * This software is open-source under the BSD license; see either
 * "license.txt" or
 * http://jung.sourceforge.net/license.txt 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
 *
 */
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);
}
