160. d.closure(over:) is the value form of floyd_warshall (2026-11-21)
- Decision.
d.closure(over: r) -> ?[V, V]?Wreturns a new closed matrix (Noneon a negative cycle), assortedis tosort;floyd_warshall(mut d, over:)stays the in-place form. - Why. The egoi23p4 dream wrote
g.closure(semiring). The hill-climb rejected it as a duplicate offloyd_warshall, and the port then needed a four-line clone-run-compare helper. The value counterpart of an in-place algorithm is the existingsort/sortedconvention, not a second algorithm. - Reverse. Delete
closurefromspec/std/graph.cpand restore the helper in the port.