Skip to content

Commit

Permalink
refactor(adjacency): migrate/remove DisjointSet (#486)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: migrate DisjointSet to thi.ng/disjoint-set pkg

- remove obsolete files
- update pkg
  • Loading branch information
postspectacular committed Jul 20, 2024
1 parent ebcef75 commit c4a9798
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 112 deletions.
4 changes: 1 addition & 3 deletions packages/adjacency/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@thi.ng/arrays": "^2.9.11",
"@thi.ng/bitfield": "^2.3.46",
"@thi.ng/dcons": "^3.2.118",
"@thi.ng/disjoint-set": "^1.0.0",
"@thi.ng/errors": "^2.5.12",
"@thi.ng/sparse": "^0.3.123"
},
Expand Down Expand Up @@ -103,9 +104,6 @@
"./dfs": {
"default": "./dfs.js"
},
"./disjoint-set": {
"default": "./disjoint-set.js"
},
"./floyd-warshall": {
"default": "./floyd-warshall.js"
},
Expand Down
107 changes: 0 additions & 107 deletions packages/adjacency/src/disjoint-set.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/adjacency/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from "./api.js";
export * from "./binary.js";
export * from "./disjoint-set.js";
export * from "./floyd-warshall.js";
export * from "./list.js";
export * from "./sparse.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/adjacency/src/mst.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Fn } from "@thi.ng/api";
import { sortByCachedKey } from "@thi.ng/arrays/sort-cached";
import { DisjointSet } from "./disjoint-set.js";
import { DisjointSet } from "@thi.ng/disjoint-set";

/**
* Computes the Minimum Spanning Tree from given weighted `edges`, using
Expand Down

0 comments on commit c4a9798

Please sign in to comment.