package ls.graph.serialize;
import java.io.File;
import java.io.IOException;
import java.io.Reader;
import ls.graph.script.ScriptableGraph;
public interface GraphReader
{
/**
* Read the graph data from the given file
* @param f The file to read from
* @return The parsed graph, as scriptable graph
* @throws IOException
*/
ScriptableGraph readGraphFromFile(File f) throws IOException;
/**
* Read the graph data from the given reader
* @param r The reader to read from
* @return The parsed graph, as scriptable graph
* @throws IOException
*/
ScriptableGraph read(Reader r) throws IOException;
}