Пример #1
0
 /// <summary>
 /// Run one step of the algorithm on the graph, modifying it in place
 /// </summary>
 /// <param name="g">The graph to step through</param>
 /// <returns>Whether the algorithm has finished or not. True if it is done, False otherwise</returns>
 public abstract bool step(Graph g);
Пример #2
0
 /// <summary>
 /// Prepare the algorithm. This should only be called _once_.
 /// </summary>
 /// <param name="g">The graph to start processing</param>
 public abstract void start(Graph g);