@graphrs/isomorphism 0.0.0-canary.4aee852

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.
@@ -0,0 +1,5 @@
1
+ import { Graph } from '@graphrs/core';
2
+
3
+ declare function automorphismGroupSize(graph: Graph): Promise<number>;
4
+
5
+ export { automorphismGroupSize };
@@ -0,0 +1,3 @@
1
+ export { automorphismGroupSize } from './chunk-SJXEPLWX.js';
2
+ //# sourceMappingURL=automorphism.js.map
3
+ //# sourceMappingURL=automorphism.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"automorphism.js"}
@@ -0,0 +1,5 @@
1
+ import { Graph } from '@graphrs/core';
2
+
3
+ declare function canonicalPermutation(graph: Graph): Promise<number[]>;
4
+
5
+ export { canonicalPermutation };
@@ -0,0 +1,3 @@
1
+ export { canonicalPermutation } from './chunk-IQBR46OH.js';
2
+ //# sourceMappingURL=canonical.js.map
3
+ //# sourceMappingURL=canonical.js.map
@@ -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"]}
@@ -0,0 +1,4 @@
1
+ export { isIsomorphic, subgraphIsomorphic } from './vf2.js';
2
+ export { canonicalPermutation } from './canonical.js';
3
+ export { automorphismGroupSize } from './automorphism.js';
4
+ import '@graphrs/core';
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export { automorphismGroupSize } from './chunk-SJXEPLWX.js';
2
+ export { canonicalPermutation } from './chunk-IQBR46OH.js';
3
+ export { isIsomorphic, subgraphIsomorphic } from './chunk-WLWAJ5OH.js';
4
+ //# sourceMappingURL=index.js.map
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
package/dist/vf2.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Graph } from '@graphrs/core';
2
+
3
+ declare function isIsomorphic(g1: Graph, g2: Graph): Promise<boolean>;
4
+ declare function subgraphIsomorphic(g1: Graph, g2: Graph): Promise<boolean>;
5
+
6
+ export { isIsomorphic, subgraphIsomorphic };
package/dist/vf2.js ADDED
@@ -0,0 +1,3 @@
1
+ export { isIsomorphic, subgraphIsomorphic } from './chunk-WLWAJ5OH.js';
2
+ //# sourceMappingURL=vf2.js.map
3
+ //# sourceMappingURL=vf2.js.map
@@ -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.4aee852",
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
+ "scripts": {
49
+ "build": "tsup",
50
+ "test": "vitest run --passWithNoTests",
51
+ "test:ci": "vitest run --reporter=default --passWithNoTests",
52
+ "lint": "tsc --noEmit",
53
+ "typecheck": "tsc --noEmit",
54
+ "clean": "rm -rf dist"
55
+ },
56
+ "peerDependencies": {
57
+ "@graphrs/core": "workspace:^"
58
+ }
59
+ }