run method

dynamic run()

Implementation

run() {
  if (graph.vertexes.isEmpty) return;
  var g = currantBatchRange();
  var vertexs = graph.vertexes.sublist(g[0], g[1]);
  for (var vertex in vertexs) {
    graph.algorithm?.compute(vertex, graph);
  }
  batchIndex++;
}