@graphrs/isomorphism 0.0.0-canary.de24fef
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/LICENSE +21 -0
- package/dist/automorphism.d.ts +5 -0
- package/dist/automorphism.js +3 -0
- package/dist/automorphism.js.map +1 -0
- package/dist/canonical.d.ts +5 -0
- package/dist/canonical.js +3 -0
- package/dist/canonical.js.map +1 -0
- package/dist/chunk-IQBR46OH.js +12 -0
- package/dist/chunk-IQBR46OH.js.map +1 -0
- package/dist/chunk-SJXEPLWX.js +12 -0
- package/dist/chunk-SJXEPLWX.js.map +1 -0
- package/dist/chunk-WLWAJ5OH.js +19 -0
- package/dist/chunk-WLWAJ5OH.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/vf2.d.ts +6 -0
- package/dist/vf2.js +3 -0
- package/dist/vf2.js.map +1 -0
- package/package.json +59 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present Totoro-jam
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"automorphism.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"canonical.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getWasm } from '@graphrs/core';
|
|
2
|
+
|
|
3
|
+
// src/canonical.ts
|
|
4
|
+
async function canonicalPermutation(graph) {
|
|
5
|
+
await getWasm();
|
|
6
|
+
void graph._getEdgePairs();
|
|
7
|
+
throw new Error("Not yet implemented \u2014 WASM bindings pending");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { canonicalPermutation };
|
|
11
|
+
//# sourceMappingURL=chunk-IQBR46OH.js.map
|
|
12
|
+
//# sourceMappingURL=chunk-IQBR46OH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/canonical.ts"],"names":[],"mappings":";;;AAEA,eAAsB,qBAAqB,KAAA,EAAiC;AAC1E,EAAc,MAAM,OAAA;AAEpB,EAAA,KAAK,MAAM,aAAA,EAAc;AACzB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D","file":"chunk-IQBR46OH.js","sourcesContent":["import { getWasm, type Graph } from '@graphrs/core';\n\nexport async function canonicalPermutation(graph: Graph): Promise<number[]> {\n const _wasm = await getWasm();\n void _wasm;\n void graph._getEdgePairs();\n throw new Error('Not yet implemented — WASM bindings pending');\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getWasm } from '@graphrs/core';
|
|
2
|
+
|
|
3
|
+
// src/automorphism.ts
|
|
4
|
+
async function automorphismGroupSize(graph) {
|
|
5
|
+
await getWasm();
|
|
6
|
+
void graph._getEdgePairs();
|
|
7
|
+
throw new Error("Not yet implemented \u2014 WASM bindings pending");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { automorphismGroupSize };
|
|
11
|
+
//# sourceMappingURL=chunk-SJXEPLWX.js.map
|
|
12
|
+
//# sourceMappingURL=chunk-SJXEPLWX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/automorphism.ts"],"names":[],"mappings":";;;AAEA,eAAsB,sBAAsB,KAAA,EAA+B;AACzE,EAAc,MAAM,OAAA;AAEpB,EAAA,KAAK,MAAM,aAAA,EAAc;AACzB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D","file":"chunk-SJXEPLWX.js","sourcesContent":["import { getWasm, type Graph } from '@graphrs/core';\n\nexport async function automorphismGroupSize(graph: Graph): Promise<number> {\n const _wasm = await getWasm();\n void _wasm;\n void graph._getEdgePairs();\n throw new Error('Not yet implemented — WASM bindings pending');\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getWasm } from '@graphrs/core';
|
|
2
|
+
|
|
3
|
+
// src/vf2.ts
|
|
4
|
+
async function isIsomorphic(g1, g2) {
|
|
5
|
+
await getWasm();
|
|
6
|
+
void g1._getEdgePairs();
|
|
7
|
+
void g2._getEdgePairs();
|
|
8
|
+
throw new Error("Not yet implemented \u2014 WASM bindings pending");
|
|
9
|
+
}
|
|
10
|
+
async function subgraphIsomorphic(g1, g2) {
|
|
11
|
+
await getWasm();
|
|
12
|
+
void g1._getEdgePairs();
|
|
13
|
+
void g2._getEdgePairs();
|
|
14
|
+
throw new Error("Not yet implemented \u2014 WASM bindings pending");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { isIsomorphic, subgraphIsomorphic };
|
|
18
|
+
//# sourceMappingURL=chunk-WLWAJ5OH.js.map
|
|
19
|
+
//# sourceMappingURL=chunk-WLWAJ5OH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/vf2.ts"],"names":[],"mappings":";;;AAEA,eAAsB,YAAA,CAAa,IAAW,EAAA,EAA6B;AACzE,EAAc,MAAM,OAAA;AAEpB,EAAA,KAAK,GAAG,aAAA,EAAc;AACtB,EAAA,KAAK,GAAG,aAAA,EAAc;AACtB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D;AACA,eAAsB,kBAAA,CAAmB,IAAW,EAAA,EAA6B;AAC/E,EAAc,MAAM,OAAA;AAEpB,EAAA,KAAK,GAAG,aAAA,EAAc;AACtB,EAAA,KAAK,GAAG,aAAA,EAAc;AACtB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D","file":"chunk-WLWAJ5OH.js","sourcesContent":["import { getWasm, type Graph } from '@graphrs/core';\n\nexport async function isIsomorphic(g1: Graph, g2: Graph): Promise<boolean> {\n const _wasm = await getWasm();\n void _wasm;\n void g1._getEdgePairs();\n void g2._getEdgePairs();\n throw new Error('Not yet implemented — WASM bindings pending');\n}\nexport async function subgraphIsomorphic(g1: Graph, g2: Graph): Promise<boolean> {\n const _wasm = await getWasm();\n void _wasm;\n void g1._getEdgePairs();\n void g2._getEdgePairs();\n throw new Error('Not yet implemented — WASM bindings pending');\n}\n"]}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/vf2.d.ts
ADDED
package/dist/vf2.js
ADDED
package/dist/vf2.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"vf2.js"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@graphrs/isomorphism",
|
|
3
|
+
"version": "0.0.0-canary.de24fef",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "Graph isomorphism algorithms (VF2, canonical form, automorphism) for @graphrs",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"graph",
|
|
9
|
+
"isomorphism",
|
|
10
|
+
"vf2",
|
|
11
|
+
"canonical",
|
|
12
|
+
"automorphism"
|
|
13
|
+
],
|
|
14
|
+
"author": "Totoro-jam <moqiuchen66@gmail.com>",
|
|
15
|
+
"homepage": "https://github.com/Totoro-jam/graphrs#readme",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/Totoro-jam/graphrs/issues"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/Totoro-jam/graphrs",
|
|
22
|
+
"directory": "packages/isomorphism"
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./vf2": {
|
|
31
|
+
"types": "./dist/vf2.d.ts",
|
|
32
|
+
"import": "./dist/vf2.js"
|
|
33
|
+
},
|
|
34
|
+
"./canonical": {
|
|
35
|
+
"types": "./dist/canonical.d.ts",
|
|
36
|
+
"import": "./dist/canonical.js"
|
|
37
|
+
},
|
|
38
|
+
"./automorphism": {
|
|
39
|
+
"types": "./dist/automorphism.d.ts",
|
|
40
|
+
"import": "./dist/automorphism.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"main": "./dist/index.js",
|
|
44
|
+
"types": "./dist/index.d.ts",
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@graphrs/core": "^0.0.0-canary.de24fef"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsup",
|
|
53
|
+
"test": "vitest run --passWithNoTests",
|
|
54
|
+
"test:ci": "vitest run --reporter=default --passWithNoTests",
|
|
55
|
+
"lint": "tsc --noEmit",
|
|
56
|
+
"typecheck": "tsc --noEmit",
|
|
57
|
+
"clean": "rm -rf dist"
|
|
58
|
+
}
|
|
59
|
+
}
|