We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c11404 commit 482a246Copy full SHA for 482a246
utils/Graph/index.js
@@ -19,8 +19,6 @@ class Graph {
19
const arr = this.AdjList.get(vertex);
20
if (!arr.includes(node)) {
21
arr.push(node);
22
- } else {
23
- throw new Error(`Can't add '${node}', it already exists`);
24
}
25
} else {
26
throw new Error(`Can't add non-existing vertex ->'${node}'`);
0 commit comments