diff --git a/src/core/graph.ts b/src/core/graph.ts index 60f397698..be915dde2 100644 --- a/src/core/graph.ts +++ b/src/core/graph.ts @@ -36,7 +36,7 @@ export class PrecedenceGraph { } } } else { - this.adjacencyMap.set(k, v); + this.adjacencyMap.set(k, new Set(v)); this.numberOfEdges += v.size; } }