test/graph_test.cc
changeset 883 b87f0504cdbe
parent 784 9d6c3e8b2421
child 956 141f9c0db4a3
equal deleted inserted replaced
18:4a0b1607d8b6 19:a3d6c24fdc0e
   257   snapshot.save(G);
   257   snapshot.save(G);
   258 
   258 
   259   G.addEdge(G.addNode(), G.addNode());
   259   G.addEdge(G.addNode(), G.addNode());
   260 
   260 
   261   snapshot.restore();
   261   snapshot.restore();
       
   262   snapshot.save(G);
       
   263 
       
   264   checkGraphNodeList(G, 4);
       
   265   checkGraphEdgeList(G, 3);
       
   266   checkGraphArcList(G, 6);
       
   267   
       
   268   G.addEdge(G.addNode(), G.addNode());
       
   269 
       
   270   snapshot.restore();
   262 
   271 
   263   checkGraphNodeList(G, 4);
   272   checkGraphNodeList(G, 4);
   264   checkGraphEdgeList(G, 3);
   273   checkGraphEdgeList(G, 3);
   265   checkGraphArcList(G, 6);
   274   checkGraphArcList(G, 6);
   266 }
   275 }