238. dfs_tree returns a forest over all of V (2026-11-22)
Graph.dfs_tree(root) documented that vertices outside root's component
are "not in tree", but Rooted<V, _> covers every vertex of V (its
build asserts the BFS reached V.count vertices). Rather than add a
partial Rooted, tree is a forest: root first, then each unreached
vertex as a root of its own, in V order, so tree.parent(v) == None and
tree.depth(v) == 0 for them. It lives in std.tree as a free fn on
Graph, like spanning_tree, because std.graph cannot import Rooted.
Reverse: give Rooted an optional vertex set and return only the component.