///|
/// Iterative Kosaraju. Edges point from a referenced table to its dependents.
/// Reversing DFS finish order on the transpose gives dependency-first components.
fn relationship_components(
dependents : Array[Array[Int32]],
dependencies : Array[Array[Int32]],
) -> Array[Array[Int32]] {
let n = dependents.length()
let seen = Array::make(n, false)
let finish = []
let stack : Array[(Int32, Int32)] = []
for start in 0..