@graphrs/isomorphism 0.1.0 → 0.2.0
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/dist/automorphism.js +2 -1
- package/dist/canonical.js +2 -1
- package/dist/chunk-FVSFGGCN.js +16 -0
- package/dist/chunk-FVSFGGCN.js.map +1 -0
- package/dist/chunk-IQS2HS3U.js +33 -0
- package/dist/chunk-IQS2HS3U.js.map +1 -0
- package/dist/chunk-KKDSRV3J.js +17 -0
- package/dist/chunk-KKDSRV3J.js.map +1 -0
- package/dist/chunk-LVINJVAE.js +16 -0
- package/dist/chunk-LVINJVAE.js.map +1 -0
- package/dist/index.js +4 -3
- package/dist/vf2.js +2 -1
- package/package.json +12 -40
- package/LICENSE +0 -21
- package/dist/chunk-IQBR46OH.js +0 -12
- package/dist/chunk-IQBR46OH.js.map +0 -1
- package/dist/chunk-SJXEPLWX.js +0 -12
- package/dist/chunk-SJXEPLWX.js.map +0 -1
- package/dist/chunk-WLWAJ5OH.js +0 -19
- package/dist/chunk-WLWAJ5OH.js.map +0 -1
package/dist/automorphism.js
CHANGED
package/dist/canonical.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { toWasmGraph } from './chunk-KKDSRV3J.js';
|
|
2
|
+
|
|
3
|
+
// src/automorphism.ts
|
|
4
|
+
async function automorphismGroupSize(graph) {
|
|
5
|
+
const wg = await toWasmGraph(graph);
|
|
6
|
+
try {
|
|
7
|
+
const raw = JSON.parse(wg.countAutomorphisms());
|
|
8
|
+
return raw.count;
|
|
9
|
+
} finally {
|
|
10
|
+
wg.free();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { automorphismGroupSize };
|
|
15
|
+
//# sourceMappingURL=chunk-FVSFGGCN.js.map
|
|
16
|
+
//# sourceMappingURL=chunk-FVSFGGCN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/automorphism.ts"],"names":[],"mappings":";;;AAGA,eAAsB,sBAAsB,KAAA,EAA+B;AACzE,EAAA,MAAM,EAAA,GAAK,MAAM,WAAA,CAAY,KAAK,CAAA;AAClC,EAAA,IAAI;AACF,IAAA,MAAM,GAAA,GAAM,IAAA,CAAK,KAAA,CAAM,EAAA,CAAG,oBAAoB,CAAA;AAC9C,IAAA,OAAO,GAAA,CAAI,KAAA;AAAA,EACb,CAAA,SAAE;AACA,IAAA,EAAA,CAAG,IAAA,EAAK;AAAA,EACV;AACF","file":"chunk-FVSFGGCN.js","sourcesContent":["import type { Graph } from '@graphrs/core';\nimport { toWasmGraph } from './utils.js';\n\nexport async function automorphismGroupSize(graph: Graph): Promise<number> {\n const wg = await toWasmGraph(graph);\n try {\n const raw = JSON.parse(wg.countAutomorphisms()) as { count: number };\n return raw.count;\n } finally {\n wg.free();\n }\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { toWasmGraph } from './chunk-KKDSRV3J.js';
|
|
2
|
+
|
|
3
|
+
// src/vf2.ts
|
|
4
|
+
async function isIsomorphic(g1, g2) {
|
|
5
|
+
const wg1 = await toWasmGraph(g1);
|
|
6
|
+
try {
|
|
7
|
+
const wg2 = await toWasmGraph(g2);
|
|
8
|
+
try {
|
|
9
|
+
return wg1.isomorphic(wg2);
|
|
10
|
+
} finally {
|
|
11
|
+
wg2.free();
|
|
12
|
+
}
|
|
13
|
+
} finally {
|
|
14
|
+
wg1.free();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
async function subgraphIsomorphic(g1, g2) {
|
|
18
|
+
const wg1 = await toWasmGraph(g1);
|
|
19
|
+
try {
|
|
20
|
+
const wg2 = await toWasmGraph(g2);
|
|
21
|
+
try {
|
|
22
|
+
return wg1.subisomorphic(wg2);
|
|
23
|
+
} finally {
|
|
24
|
+
wg2.free();
|
|
25
|
+
}
|
|
26
|
+
} finally {
|
|
27
|
+
wg1.free();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { isIsomorphic, subgraphIsomorphic };
|
|
32
|
+
//# sourceMappingURL=chunk-IQS2HS3U.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-IQS2HS3U.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/vf2.ts"],"names":[],"mappings":";;;AAGA,eAAsB,YAAA,CAAa,IAAW,EAAA,EAA6B;AACzE,EAAA,MAAM,GAAA,GAAM,MAAM,WAAA,CAAY,EAAE,CAAA;AAChC,EAAA,IAAI;AACF,IAAA,MAAM,GAAA,GAAM,MAAM,WAAA,CAAY,EAAE,CAAA;AAChC,IAAA,IAAI;AACF,MAAA,OAAO,GAAA,CAAI,WAAW,GAAG,CAAA;AAAA,IAC3B,CAAA,SAAE;AACA,MAAA,GAAA,CAAI,IAAA,EAAK;AAAA,IACX;AAAA,EACF,CAAA,SAAE;AACA,IAAA,GAAA,CAAI,IAAA,EAAK;AAAA,EACX;AACF;AAEA,eAAsB,kBAAA,CAAmB,IAAW,EAAA,EAA6B;AAC/E,EAAA,MAAM,GAAA,GAAM,MAAM,WAAA,CAAY,EAAE,CAAA;AAChC,EAAA,IAAI;AACF,IAAA,MAAM,GAAA,GAAM,MAAM,WAAA,CAAY,EAAE,CAAA;AAChC,IAAA,IAAI;AACF,MAAA,OAAO,GAAA,CAAI,cAAc,GAAG,CAAA;AAAA,IAC9B,CAAA,SAAE;AACA,MAAA,GAAA,CAAI,IAAA,EAAK;AAAA,IACX;AAAA,EACF,CAAA,SAAE;AACA,IAAA,GAAA,CAAI,IAAA,EAAK;AAAA,EACX;AACF","file":"chunk-IQS2HS3U.js","sourcesContent":["import type { Graph } from '@graphrs/core';\nimport { toWasmGraph } from './utils.js';\n\nexport async function isIsomorphic(g1: Graph, g2: Graph): Promise<boolean> {\n const wg1 = await toWasmGraph(g1);\n try {\n const wg2 = await toWasmGraph(g2);\n try {\n return wg1.isomorphic(wg2);\n } finally {\n wg2.free();\n }\n } finally {\n wg1.free();\n }\n}\n\nexport async function subgraphIsomorphic(g1: Graph, g2: Graph): Promise<boolean> {\n const wg1 = await toWasmGraph(g1);\n try {\n const wg2 = await toWasmGraph(g2);\n try {\n return wg1.subisomorphic(wg2);\n } finally {\n wg2.free();\n }\n } finally {\n wg1.free();\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getWasm } from '@graphrs/core';
|
|
2
|
+
|
|
3
|
+
// src/utils.ts
|
|
4
|
+
async function toWasmGraph(graph) {
|
|
5
|
+
const { WasmGraph } = await getWasm();
|
|
6
|
+
const edges = graph._getEdgePairs();
|
|
7
|
+
const flat = new Uint32Array(edges.length * 2);
|
|
8
|
+
for (let i = 0; i < edges.length; i++) {
|
|
9
|
+
flat[i * 2] = edges[i][0];
|
|
10
|
+
flat[i * 2 + 1] = edges[i][1];
|
|
11
|
+
}
|
|
12
|
+
return WasmGraph.fromEdges(flat, graph.directed);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { toWasmGraph };
|
|
16
|
+
//# sourceMappingURL=chunk-KKDSRV3J.js.map
|
|
17
|
+
//# sourceMappingURL=chunk-KKDSRV3J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils.ts"],"names":[],"mappings":";;;AAGA,eAAsB,YAAY,KAAA,EAA0C;AAC1E,EAAA,MAAM,EAAE,SAAA,EAAU,GAAI,MAAM,OAAA,EAAQ;AACpC,EAAA,MAAM,KAAA,GAAQ,MAAM,aAAA,EAAc;AAClC,EAAA,MAAM,IAAA,GAAO,IAAI,WAAA,CAAY,KAAA,CAAM,SAAS,CAAC,CAAA;AAC7C,EAAA,KAAA,IAAS,CAAA,GAAI,CAAA,EAAG,CAAA,GAAI,KAAA,CAAM,QAAQ,CAAA,EAAA,EAAK;AACrC,IAAA,IAAA,CAAK,IAAI,CAAC,CAAA,GAAI,KAAA,CAAM,CAAC,EAAG,CAAC,CAAA;AACzB,IAAA,IAAA,CAAK,IAAI,CAAA,GAAI,CAAC,IAAI,KAAA,CAAM,CAAC,EAAG,CAAC,CAAA;AAAA,EAC/B;AACA,EAAA,OAAO,SAAA,CAAU,SAAA,CAAU,IAAA,EAAM,KAAA,CAAM,QAAQ,CAAA;AACjD","file":"chunk-KKDSRV3J.js","sourcesContent":["import type { Graph, WasmGraphInstance } from '@graphrs/core';\nimport { getWasm } from '@graphrs/core';\n\nexport async function toWasmGraph(graph: Graph): Promise<WasmGraphInstance> {\n const { WasmGraph } = await getWasm();\n const edges = graph._getEdgePairs();\n const flat = new Uint32Array(edges.length * 2);\n for (let i = 0; i < edges.length; i++) {\n flat[i * 2] = edges[i]![0];\n flat[i * 2 + 1] = edges[i]![1];\n }\n return WasmGraph.fromEdges(flat, graph.directed);\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { toWasmGraph } from './chunk-KKDSRV3J.js';
|
|
2
|
+
|
|
3
|
+
// src/canonical.ts
|
|
4
|
+
async function canonicalPermutation(graph) {
|
|
5
|
+
const wg = await toWasmGraph(graph);
|
|
6
|
+
try {
|
|
7
|
+
const raw = JSON.parse(wg.canonicalPermutation());
|
|
8
|
+
return raw.permutation;
|
|
9
|
+
} finally {
|
|
10
|
+
wg.free();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { canonicalPermutation };
|
|
15
|
+
//# sourceMappingURL=chunk-LVINJVAE.js.map
|
|
16
|
+
//# sourceMappingURL=chunk-LVINJVAE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/canonical.ts"],"names":[],"mappings":";;;AAGA,eAAsB,qBAAqB,KAAA,EAAiC;AAC1E,EAAA,MAAM,EAAA,GAAK,MAAM,WAAA,CAAY,KAAK,CAAA;AAClC,EAAA,IAAI;AACF,IAAA,MAAM,GAAA,GAAM,IAAA,CAAK,KAAA,CAAM,EAAA,CAAG,sBAAsB,CAAA;AAChD,IAAA,OAAO,GAAA,CAAI,WAAA;AAAA,EACb,CAAA,SAAE;AACA,IAAA,EAAA,CAAG,IAAA,EAAK;AAAA,EACV;AACF","file":"chunk-LVINJVAE.js","sourcesContent":["import type { Graph } from '@graphrs/core';\nimport { toWasmGraph } from './utils.js';\n\nexport async function canonicalPermutation(graph: Graph): Promise<number[]> {\n const wg = await toWasmGraph(graph);\n try {\n const raw = JSON.parse(wg.canonicalPermutation()) as { permutation: number[] };\n return raw.permutation;\n } finally {\n wg.free();\n }\n}\n"]}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { automorphismGroupSize } from './chunk-
|
|
2
|
-
export { canonicalPermutation } from './chunk-
|
|
3
|
-
export { isIsomorphic, subgraphIsomorphic } from './chunk-
|
|
1
|
+
export { automorphismGroupSize } from './chunk-FVSFGGCN.js';
|
|
2
|
+
export { canonicalPermutation } from './chunk-LVINJVAE.js';
|
|
3
|
+
export { isIsomorphic, subgraphIsomorphic } from './chunk-IQS2HS3U.js';
|
|
4
|
+
import './chunk-KKDSRV3J.js';
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
package/dist/vf2.js
CHANGED
package/package.json
CHANGED
|
@@ -1,53 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphrs/isomorphism",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Graph isomorphism algorithms (VF2, canonical form, automorphism) for @graphrs",
|
|
7
|
-
"keywords": [
|
|
8
|
-
"graph",
|
|
9
|
-
"isomorphism",
|
|
10
|
-
"vf2",
|
|
11
|
-
"canonical",
|
|
12
|
-
"automorphism"
|
|
13
|
-
],
|
|
7
|
+
"keywords": ["graph", "isomorphism", "vf2", "canonical", "automorphism"],
|
|
14
8
|
"author": "Totoro-jam <moqiuchen66@gmail.com>",
|
|
15
9
|
"homepage": "https://github.com/Totoro-jam/graphrs#readme",
|
|
16
|
-
"bugs": {
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "https://github.com/Totoro-jam/graphrs",
|
|
22
|
-
"directory": "packages/isomorphism"
|
|
23
|
-
},
|
|
10
|
+
"bugs": { "url": "https://github.com/Totoro-jam/graphrs/issues" },
|
|
11
|
+
"repository": { "type": "git", "url": "https://github.com/Totoro-jam/graphrs", "directory": "packages/isomorphism" },
|
|
24
12
|
"sideEffects": false,
|
|
25
13
|
"exports": {
|
|
26
|
-
".": {
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
}
|
|
14
|
+
".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" },
|
|
15
|
+
"./vf2": { "types": "./dist/vf2.d.ts", "import": "./dist/vf2.js" },
|
|
16
|
+
"./canonical": { "types": "./dist/canonical.d.ts", "import": "./dist/canonical.js" },
|
|
17
|
+
"./automorphism": { "types": "./dist/automorphism.d.ts", "import": "./dist/automorphism.js" }
|
|
42
18
|
},
|
|
43
19
|
"main": "./dist/index.js",
|
|
44
20
|
"types": "./dist/index.d.ts",
|
|
45
|
-
"files": [
|
|
46
|
-
"dist"
|
|
47
|
-
],
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"@graphrs/core": "^0.1.0"
|
|
50
|
-
},
|
|
21
|
+
"files": ["dist"],
|
|
51
22
|
"scripts": {
|
|
52
23
|
"build": "tsup",
|
|
53
24
|
"test": "vitest run --passWithNoTests",
|
|
@@ -55,5 +26,6 @@
|
|
|
55
26
|
"lint": "tsc --noEmit",
|
|
56
27
|
"typecheck": "tsc --noEmit",
|
|
57
28
|
"clean": "rm -rf dist"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": { "@graphrs/core": "workspace:^" }
|
|
31
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
package/dist/chunk-IQBR46OH.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
package/dist/chunk-SJXEPLWX.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|
package/dist/chunk-WLWAJ5OH.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|