parallelVisit

fun parallelVisit(visitAction: (Vertex, () -> Unit) -> Unit)

Visit the vertices in DAG order. The action is invoked for each vertex, also passing a completion action to invoke when that vertex visit is considered complete, allowing successors for which all predecessors have completed to be visited.

Block this Thread until traversal is complete.

The receiver must not be cyclic.

Parameters

visitAction

What to do for each vertex.