Function or value | Description |
|
|
|
Fold vertices of the graph in a depth-first manner with the postorder traversal. The traversal starts from each vertex in roots.
|
|
|
|
Fold vertices, except them in the second list, of the graph in a depth-first manner with the preorder traversal.
|
|
Fold vertices of the graph in a depth-first manner with the reverse postorder traversal. The traversal starts from each vertex in roots.
|
|
Topologically fold every vertex of the given graph. For every unreachable nodes, we accumulate vertices reachable from the node in a postorder fashion. The accumulated list becomes the reverse postordered vertices, which is essentially the same as a topologically sorted list of vertices. We then simply fold the accumulated list. The second parameter (root) is for providing root vertices in case there is no unreachable node, e.g., when there is a loop to the root node.
|
|
|
|
|
|
|
|