@graphrs/io 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,15 @@
1
+ import { getWasm } from '@graphrs/core';
2
+
3
+ // src/gml.ts
4
+ async function readGML(text) {
5
+ await getWasm();
6
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
7
+ }
8
+ async function writeGML(graph) {
9
+ await getWasm();
10
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
11
+ }
12
+
13
+ export { readGML, writeGML };
14
+ //# sourceMappingURL=chunk-DJ3UOKTC.js.map
15
+ //# sourceMappingURL=chunk-DJ3UOKTC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/gml.ts"],"names":[],"mappings":";;;AAEA,eAAsB,QAAQ,IAAA,EAA8B;AAC1D,EAAc,MAAM,OAAA;AAGpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D;AACA,eAAsB,SAAS,KAAA,EAA+B;AAC5D,EAAc,MAAM,OAAA;AAGpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D","file":"chunk-DJ3UOKTC.js","sourcesContent":["import { getWasm, Graph } from '@graphrs/core';\n\nexport async function readGML(text: string): Promise<Graph> {\n const _wasm = await getWasm();\n void _wasm;\n void text;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\nexport async function writeGML(graph: Graph): Promise<string> {\n const _wasm = await getWasm();\n void _wasm;\n void graph;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import { getWasm } from '@graphrs/core';
2
+
3
+ // src/dot.ts
4
+ async function readDOT(text) {
5
+ await getWasm();
6
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
7
+ }
8
+ async function writeDOT(graph) {
9
+ await getWasm();
10
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
11
+ }
12
+
13
+ export { readDOT, writeDOT };
14
+ //# sourceMappingURL=chunk-HUFPU5AC.js.map
15
+ //# sourceMappingURL=chunk-HUFPU5AC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/dot.ts"],"names":[],"mappings":";;;AAEA,eAAsB,QAAQ,IAAA,EAA8B;AAC1D,EAAc,MAAM,OAAA;AAGpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D;AACA,eAAsB,SAAS,KAAA,EAA+B;AAC5D,EAAc,MAAM,OAAA;AAGpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D","file":"chunk-HUFPU5AC.js","sourcesContent":["import { getWasm, Graph } from '@graphrs/core';\n\nexport async function readDOT(text: string): Promise<Graph> {\n const _wasm = await getWasm();\n void _wasm;\n void text;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\nexport async function writeDOT(graph: Graph): Promise<string> {\n const _wasm = await getWasm();\n void _wasm;\n void graph;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import { getWasm } from '@graphrs/core';
2
+
3
+ // src/pajek.ts
4
+ async function readPajek(text) {
5
+ await getWasm();
6
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
7
+ }
8
+ async function writePajek(graph) {
9
+ await getWasm();
10
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
11
+ }
12
+
13
+ export { readPajek, writePajek };
14
+ //# sourceMappingURL=chunk-KCRLLFXZ.js.map
15
+ //# sourceMappingURL=chunk-KCRLLFXZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/pajek.ts"],"names":[],"mappings":";;;AAEA,eAAsB,UAAU,IAAA,EAA8B;AAC5D,EAAc,MAAM,OAAA;AAGpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D;AACA,eAAsB,WAAW,KAAA,EAA+B;AAC9D,EAAc,MAAM,OAAA;AAGpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D","file":"chunk-KCRLLFXZ.js","sourcesContent":["import { getWasm, Graph } from '@graphrs/core';\n\nexport async function readPajek(text: string): Promise<Graph> {\n const _wasm = await getWasm();\n void _wasm;\n void text;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\nexport async function writePajek(graph: Graph): Promise<string> {\n const _wasm = await getWasm();\n void _wasm;\n void graph;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import { getWasm } from '@graphrs/core';
2
+
3
+ // src/graphml.ts
4
+ async function readGraphML(xml) {
5
+ await getWasm();
6
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
7
+ }
8
+ async function writeGraphML(graph) {
9
+ await getWasm();
10
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
11
+ }
12
+
13
+ export { readGraphML, writeGraphML };
14
+ //# sourceMappingURL=chunk-ORTBVLDP.js.map
15
+ //# sourceMappingURL=chunk-ORTBVLDP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/graphml.ts"],"names":[],"mappings":";;;AAEA,eAAsB,YAAY,GAAA,EAA6B;AAC7D,EAAc,MAAM,OAAA;AAGpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D;AACA,eAAsB,aAAa,KAAA,EAA+B;AAChE,EAAc,MAAM,OAAA;AAGpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D","file":"chunk-ORTBVLDP.js","sourcesContent":["import { getWasm, Graph } from '@graphrs/core';\n\nexport async function readGraphML(xml: string): Promise<Graph> {\n const _wasm = await getWasm();\n void _wasm;\n void xml;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\nexport async function writeGraphML(graph: Graph): Promise<string> {\n const _wasm = await getWasm();\n void _wasm;\n void graph;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import { getWasm } from '@graphrs/core';
2
+
3
+ // src/edgelist.ts
4
+ async function readEdgeList(text, separator) {
5
+ await getWasm();
6
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
7
+ }
8
+ async function writeEdgeList(graph, separator) {
9
+ await getWasm();
10
+ throw new Error("Not yet implemented \u2014 WASM bindings pending");
11
+ }
12
+
13
+ export { readEdgeList, writeEdgeList };
14
+ //# sourceMappingURL=chunk-SQNO7VKV.js.map
15
+ //# sourceMappingURL=chunk-SQNO7VKV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/edgelist.ts"],"names":[],"mappings":";;;AAEA,eAAsB,YAAA,CAAa,MAAc,SAAA,EAAoC;AACnF,EAAc,MAAM,OAAA;AAIpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D;AACA,eAAsB,aAAA,CAAc,OAAc,SAAA,EAAqC;AACrF,EAAc,MAAM,OAAA;AAIpB,EAAA,MAAM,IAAI,MAAM,kDAA6C,CAAA;AAC/D","file":"chunk-SQNO7VKV.js","sourcesContent":["import { getWasm, Graph } from '@graphrs/core';\n\nexport async function readEdgeList(text: string, separator?: string): Promise<Graph> {\n const _wasm = await getWasm();\n void _wasm;\n void text;\n void separator;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\nexport async function writeEdgeList(graph: Graph, separator?: string): Promise<string> {\n const _wasm = await getWasm();\n void _wasm;\n void graph;\n void separator;\n throw new Error('Not yet implemented — WASM bindings pending');\n}\n"]}
package/dist/dot.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Graph } from '@graphrs/core';
2
+
3
+ declare function readDOT(text: string): Promise<Graph>;
4
+ declare function writeDOT(graph: Graph): Promise<string>;
5
+
6
+ export { readDOT, writeDOT };
package/dist/dot.js ADDED
@@ -0,0 +1,3 @@
1
+ export { readDOT, writeDOT } from './chunk-HUFPU5AC.js';
2
+ //# sourceMappingURL=dot.js.map
3
+ //# sourceMappingURL=dot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"dot.js"}
@@ -0,0 +1,6 @@
1
+ import { Graph } from '@graphrs/core';
2
+
3
+ declare function readEdgeList(text: string, separator?: string): Promise<Graph>;
4
+ declare function writeEdgeList(graph: Graph, separator?: string): Promise<string>;
5
+
6
+ export { readEdgeList, writeEdgeList };
@@ -0,0 +1,3 @@
1
+ export { readEdgeList, writeEdgeList } from './chunk-SQNO7VKV.js';
2
+ //# sourceMappingURL=edgelist.js.map
3
+ //# sourceMappingURL=edgelist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"edgelist.js"}
package/dist/gml.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Graph } from '@graphrs/core';
2
+
3
+ declare function readGML(text: string): Promise<Graph>;
4
+ declare function writeGML(graph: Graph): Promise<string>;
5
+
6
+ export { readGML, writeGML };
package/dist/gml.js ADDED
@@ -0,0 +1,3 @@
1
+ export { readGML, writeGML } from './chunk-DJ3UOKTC.js';
2
+ //# sourceMappingURL=gml.js.map
3
+ //# sourceMappingURL=gml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"gml.js"}
@@ -0,0 +1,6 @@
1
+ import { Graph } from '@graphrs/core';
2
+
3
+ declare function readGraphML(xml: string): Promise<Graph>;
4
+ declare function writeGraphML(graph: Graph): Promise<string>;
5
+
6
+ export { readGraphML, writeGraphML };
@@ -0,0 +1,3 @@
1
+ export { readGraphML, writeGraphML } from './chunk-ORTBVLDP.js';
2
+ //# sourceMappingURL=graphml.js.map
3
+ //# sourceMappingURL=graphml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"graphml.js"}
@@ -0,0 +1,6 @@
1
+ export { readGraphML, writeGraphML } from './graphml.js';
2
+ export { readGML, writeGML } from './gml.js';
3
+ export { readDOT, writeDOT } from './dot.js';
4
+ export { readEdgeList, writeEdgeList } from './edgelist.js';
5
+ export { readPajek, writePajek } from './pajek.js';
6
+ import '@graphrs/core';
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ export { readDOT, writeDOT } from './chunk-HUFPU5AC.js';
2
+ export { readEdgeList, writeEdgeList } from './chunk-SQNO7VKV.js';
3
+ export { readGML, writeGML } from './chunk-DJ3UOKTC.js';
4
+ export { readGraphML, writeGraphML } from './chunk-ORTBVLDP.js';
5
+ export { readPajek, writePajek } from './chunk-KCRLLFXZ.js';
6
+ //# sourceMappingURL=index.js.map
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,6 @@
1
+ import { Graph } from '@graphrs/core';
2
+
3
+ declare function readPajek(text: string): Promise<Graph>;
4
+ declare function writePajek(graph: Graph): Promise<string>;
5
+
6
+ export { readPajek, writePajek };
package/dist/pajek.js ADDED
@@ -0,0 +1,3 @@
1
+ export { readPajek, writePajek } from './chunk-KCRLLFXZ.js';
2
+ //# sourceMappingURL=pajek.js.map
3
+ //# sourceMappingURL=pajek.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"pajek.js"}
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@graphrs/io",
3
+ "version": "0.0.0-canary.4aee852",
4
+ "type": "module",
5
+ "license": "MIT",
6
+ "description": "Graph I/O formats (GraphML, GML, DOT, edgelist, Pajek) for @graphrs",
7
+ "keywords": [
8
+ "graph",
9
+ "graphml",
10
+ "gml",
11
+ "dot",
12
+ "import-export"
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/io"
23
+ },
24
+ "sideEffects": false,
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js"
29
+ },
30
+ "./graphml": {
31
+ "types": "./dist/graphml.d.ts",
32
+ "import": "./dist/graphml.js"
33
+ },
34
+ "./gml": {
35
+ "types": "./dist/gml.d.ts",
36
+ "import": "./dist/gml.js"
37
+ },
38
+ "./dot": {
39
+ "types": "./dist/dot.d.ts",
40
+ "import": "./dist/dot.js"
41
+ },
42
+ "./edgelist": {
43
+ "types": "./dist/edgelist.d.ts",
44
+ "import": "./dist/edgelist.js"
45
+ },
46
+ "./pajek": {
47
+ "types": "./dist/pajek.d.ts",
48
+ "import": "./dist/pajek.js"
49
+ }
50
+ },
51
+ "main": "./dist/index.js",
52
+ "types": "./dist/index.d.ts",
53
+ "files": [
54
+ "dist"
55
+ ],
56
+ "scripts": {
57
+ "build": "tsup",
58
+ "test": "vitest run --passWithNoTests",
59
+ "test:ci": "vitest run --reporter=default --passWithNoTests",
60
+ "lint": "tsc --noEmit",
61
+ "typecheck": "tsc --noEmit",
62
+ "clean": "rm -rf dist"
63
+ },
64
+ "peerDependencies": {
65
+ "@graphrs/core": "workspace:^"
66
+ }
67
+ }