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