78. Paths keeps one witness array, back (2026-11-21)
Paths<V, W, A>storesback: [V]?(from: V, via: A)in place of separateparent: [V]?Vandvia: [V]?A. Reason: every search wrote both arrays on every improving relaxation, and g++ keeps those stores because the arrays escape through the returned struct, so a port that reads onlyp[v]paid two extra writes and two extra arrays of n. Onbench/graph/dijkstra(n = 500k, m = 2M) the merge takes 0.478 s to 0.412 s against 0.350-0.368 s hand C++ (1.30x to 1.18x). One array of pairs makes that one write and one slot per vertex, withpath/arcsunchanged; nothing read.parentor.viadirectly, so no accessor is kept. A program that never reads the witnesses at all is the codegen lane's general dead-field elimination over monomorphized structs, not a_nopathstwin. Reverse: restore the two fields instdlib/graph.cpand theparent[v] = u; via[v] = awrites in each search.