// engine/spec-dependency-graph/superseded-set.ts — SPEC-746
// Computes the set of spec IDs that have been superseded by another spec.
/**
 * Returns the set of spec IDs that appear as the target of a `supersedes` edge.
 * These are specs that have been intentionally replaced and should be excluded
 * from audit_specs_drift (SPEC-744) scanning.
 *
 * Also returns the superseder chain for reporting.
 */
export function getSupersededSet(graph) {
    const superseded = new Set();
    for (const edge of graph.edges) {
        if (edge.kind === 'supersedes') {
            superseded.add(edge.to);
        }
    }
    return superseded;
}
/**
 * Returns a map of superseded-spec-id → superseder-spec-id for report generation.
 */
export function getSupersededMap(graph) {
    const result = new Map();
    for (const edge of graph.edges) {
        if (edge.kind === 'supersedes') {
            result.set(edge.to, edge.from);
        }
    }
    return result;
}
//# sourceMappingURL=superseded-set.js.map