Menu

[r66]: / ls / graph / serialize / GraphReader.java  Maximize  Restore  History

Download this file

28 lines (22 with data), 651 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
}
MongoDB Logo MongoDB