Graph.prototype.ingoing = function* (u) {
        for (const e of this.pred.get(u)) yield [e.v, e.u, e.ref];
    };