package ls.graph.serialize;
import java.io.IOException;
import java.io.Writer;
import edu.uci.ics.jung.graph.Graph;
public interface GraphSerializer
{
/**
* Serialize the given graph to the given filename
* @param g The graph
* @param filename The file to write to
* @throws IOException
*/
void serialize(Graph g, String filename) throws IOException;
/**
* Serialize the given graph to the given writer
* @param g The graph to serialized
* @param w The writer used for output
*/
void serialize(Graph g ,Writer w) throws IOException;
}