algorithmOnLoad method

void algorithmOnLoad(
  1. GraphAlgorithm? algorithm
)

Recursively call the onLoad method of the algorithm, assign values to the parameters of each algorithm 递归调用算法的onLoad方法,为各个算法的参数赋值

Implementation

void algorithmOnLoad(GraphAlgorithm? algorithm) {
  if (algorithm == null) return;
  algorithm.onLoad(vertex);
}