for (int i = 0; i < edges.length; i++) {
graph.addEdge(edges[i][0], edges[i][1]);
}
try {
JSONObject json = graph.toJSON();
FlexibleUndirectedGraph graph2 = FlexibleUndirectedGraph
.fromJSON(json);
Assert.assertEquals("Wrong number of nodes", graph.getNodeNum(),
graph2.getNodeNum());
Assert.assertEquals("Wrong number of edges", graph.getEdgeNum(),