Back
bf-traverse (clj)
(source)function
(bf-traverse g)
(bf-traverse g start)
(bf-traverse g start & opts)
Traverses graph g breadth-first from start. When option :f is provided,
returns a lazy seq of (f node predecessor-map depth) for each node traversed.
Otherwise, returns a lazy seq of the nodes. When option :when is provided,
filters successors with (f neighbor predecessor depth).