Menu

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

Download this file

25 lines (20 with data), 586 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
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;
}
MongoDB Logo MongoDB