@thi.ng/adjacency 2.2.18 → 2.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +7 -10
- package/api.d.ts +3 -3
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/adjacency)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -21,7 +21,7 @@ This project is part of the
|
|
|
21
21
|
|
|
22
22
|
## About
|
|
23
23
|
|
|
24
|
-
Sparse & bitwise adjacency matrices and related functions for directed & undirected graphs
|
|
24
|
+
Sparse & bitwise adjacency matrices and related functions for directed & undirected graphs
|
|
25
25
|
|
|
26
26
|
## Status
|
|
27
27
|
|
|
@@ -49,11 +49,8 @@ ES module import:
|
|
|
49
49
|
|
|
50
50
|
For Node.js REPL:
|
|
51
51
|
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
node --experimental-repl-await
|
|
55
|
-
|
|
56
|
-
> const adjacency = await import("@thi.ng/adjacency");
|
|
52
|
+
```js
|
|
53
|
+
const adjacency = await import("@thi.ng/adjacency");
|
|
57
54
|
```
|
|
58
55
|
|
|
59
56
|
Package sizes (brotli'd, pre-treeshake): ESM: 2.28 KB
|
|
@@ -87,7 +84,7 @@ TODO
|
|
|
87
84
|
|
|
88
85
|
## Authors
|
|
89
86
|
|
|
90
|
-
Karsten Schmidt
|
|
87
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
91
88
|
|
|
92
89
|
If this project contributes to an academic publication, please cite it as:
|
|
93
90
|
|
|
@@ -102,4 +99,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
102
99
|
|
|
103
100
|
## License
|
|
104
101
|
|
|
105
|
-
© 2018 - 2022 Karsten Schmidt // Apache
|
|
102
|
+
© 2018 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Fn2, Pair } from "@thi.ng/api";
|
|
2
|
-
export
|
|
2
|
+
export type DegreeType = "in" | "out" | "inout";
|
|
3
3
|
/**
|
|
4
4
|
* @typeParam T - vertex type (default: `number`)
|
|
5
5
|
*/
|
|
@@ -63,6 +63,6 @@ export interface IGraph<T = number> {
|
|
|
63
63
|
*/
|
|
64
64
|
invert(): IGraph<T>;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
67
|
-
export
|
|
66
|
+
export type Edge<T = number> = Pair<T, T>;
|
|
67
|
+
export type CostFn<T = number> = Fn2<T, T, number>;
|
|
68
68
|
//# sourceMappingURL=api.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/adjacency",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.19",
|
|
4
4
|
"description": "Sparse & bitwise adjacency matrices and related functions for directed & undirected graphs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/arrays": "^2.4.
|
|
39
|
-
"@thi.ng/bitfield": "^2.2.
|
|
40
|
-
"@thi.ng/dcons": "^3.2.
|
|
41
|
-
"@thi.ng/errors": "^2.2.
|
|
42
|
-
"@thi.ng/sparse": "^0.3.
|
|
37
|
+
"@thi.ng/api": "^8.6.0",
|
|
38
|
+
"@thi.ng/arrays": "^2.4.5",
|
|
39
|
+
"@thi.ng/bitfield": "^2.2.15",
|
|
40
|
+
"@thi.ng/dcons": "^3.2.26",
|
|
41
|
+
"@thi.ng/errors": "^2.2.6",
|
|
42
|
+
"@thi.ng/sparse": "^0.3.31"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@microsoft/api-extractor": "^7.33.
|
|
46
|
-
"@thi.ng/testament": "^0.3.
|
|
47
|
-
"@thi.ng/vectors": "^7.5.
|
|
45
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
46
|
+
"@thi.ng/testament": "^0.3.7",
|
|
47
|
+
"@thi.ng/vectors": "^7.5.27",
|
|
48
48
|
"rimraf": "^3.0.2",
|
|
49
49
|
"tools": "^0.0.1",
|
|
50
|
-
"typedoc": "^0.23.
|
|
51
|
-
"typescript": "^4.
|
|
50
|
+
"typedoc": "^0.23.22",
|
|
51
|
+
"typescript": "^4.9.4"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
54
54
|
"adjacency",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
],
|
|
120
120
|
"year": 2018
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
123
123
|
}
|