Back
post-edge-traverse (clj)
(source)function
(post-edge-traverse successors start & {:keys [seen return-seen], :or {seen #{}}})
Traverses a graph depth-first postorder from start, successors being
a function that returns direct successors for the node. Returns a
seq of edges, each edge being a vector [source-node dest-node].
Note that for undirected graphs each edge will be returned twice,
once for each direction.