*/
public class SerialGraphComputerTest extends TestCase {
public void testBasicSerialComputer() {
Graph graph = TinkerGraphFactory.createTinkerGraph();
DegreeRankProgram program = DegreeRankProgram.create().build();
SerialGraphComputer computer = new SerialGraphComputer(graph, program, GraphComputer.Isolation.BSP);
computer.execute();
VertexMemory results = computer.getVertexMemory();
assertEquals(results.getProperty(graph.getVertex(1), DegreeRankProgram.DEGREE), 0l);
assertEquals(results.getProperty(graph.getVertex(2), DegreeRankProgram.DEGREE), 1l);