@graphty/graph-io 0.3.17 → 0.3.18

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.
Files changed (91) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +29 -3
  3. package/dist/chunks/{escape-scjHxjpr.js → escape-D-gZWO26.js} +3 -2
  4. package/dist/chunks/{escape-scjHxjpr.js.map → escape-D-gZWO26.js.map} +1 -1
  5. package/dist/chunks/{importer-Xg07gk7p.js → importer-Br_QeAeE.js} +4 -3
  6. package/dist/chunks/{importer-Xg07gk7p.js.map → importer-Br_QeAeE.js.map} +1 -1
  7. package/dist/chunks/{importer-ruMWWvVs.js → importer-DHagxvDD.js} +4 -3
  8. package/dist/chunks/{importer-ruMWWvVs.js.map → importer-DHagxvDD.js.map} +1 -1
  9. package/dist/chunks/{importer-B6rKRxzv.js → importer-Du5crN9l.js} +509 -25
  10. package/dist/chunks/importer-Du5crN9l.js.map +1 -0
  11. package/dist/chunks/importer-aNJfe0qu.js +1614 -0
  12. package/dist/chunks/importer-aNJfe0qu.js.map +1 -0
  13. package/dist/chunks/{importer-BmOl9gLW.js → importer-d0uQxFp6.js} +4 -3
  14. package/dist/chunks/{importer-BmOl9gLW.js.map → importer-d0uQxFp6.js.map} +1 -1
  15. package/dist/chunks/ontology-BnrJ4I98.js +113 -0
  16. package/dist/chunks/ontology-BnrJ4I98.js.map +1 -0
  17. package/dist/chunks/{records-DSpbTE5s.js → records-Bk9jgodz.js} +2 -2
  18. package/dist/chunks/{records-DSpbTE5s.js.map → records-Bk9jgodz.js.map} +1 -1
  19. package/dist/chunks/{writer-DHHfHn11.js → report-BOk0p5y8.js} +97 -919
  20. package/dist/chunks/report-BOk0p5y8.js.map +1 -0
  21. package/dist/chunks/writer-GAdltGmC.js +827 -0
  22. package/dist/chunks/writer-GAdltGmC.js.map +1 -0
  23. package/dist/csv.js +4 -3
  24. package/dist/csv.js.map +1 -1
  25. package/dist/dot.js +1 -1
  26. package/dist/gexf.js +3 -2
  27. package/dist/gexf.js.map +1 -1
  28. package/dist/gml.js +3 -2
  29. package/dist/gml.js.map +1 -1
  30. package/dist/graph-io.js +160 -141
  31. package/dist/graph-io.js.map +1 -1
  32. package/dist/graphml.js +1 -1
  33. package/dist/json.js +1 -1
  34. package/dist/neo4j.js +4 -3
  35. package/dist/neo4j.js.map +1 -1
  36. package/dist/obo.d.ts +1 -0
  37. package/dist/obo.js +6 -0
  38. package/dist/obo.js.map +1 -0
  39. package/dist/pajek.js +1 -1
  40. package/dist/src/common/ontology.d.ts +59 -0
  41. package/dist/src/common/ontology.d.ts.map +1 -0
  42. package/dist/src/common/ontology.js +147 -0
  43. package/dist/src/common/ontology.js.map +1 -0
  44. package/dist/src/formats/json/dialect.d.ts +8 -6
  45. package/dist/src/formats/json/dialect.d.ts.map +1 -1
  46. package/dist/src/formats/json/dialect.js +26 -3
  47. package/dist/src/formats/json/dialect.js.map +1 -1
  48. package/dist/src/formats/json/importer.d.ts +324 -7
  49. package/dist/src/formats/json/importer.d.ts.map +1 -1
  50. package/dist/src/formats/json/importer.js +153 -22
  51. package/dist/src/formats/json/importer.js.map +1 -1
  52. package/dist/src/formats/json/obographs.d.ts +21 -0
  53. package/dist/src/formats/json/obographs.d.ts.map +1 -0
  54. package/dist/src/formats/json/obographs.js +476 -0
  55. package/dist/src/formats/json/obographs.js.map +1 -0
  56. package/dist/src/formats/obo/importer.d.ts +90 -0
  57. package/dist/src/formats/obo/importer.d.ts.map +1 -0
  58. package/dist/src/formats/obo/importer.js +1248 -0
  59. package/dist/src/formats/obo/importer.js.map +1 -0
  60. package/dist/src/formats/obo/index.d.ts +7 -0
  61. package/dist/src/formats/obo/index.d.ts.map +1 -0
  62. package/dist/src/formats/obo/index.js +7 -0
  63. package/dist/src/formats/obo/index.js.map +1 -0
  64. package/dist/src/formats/obo/syntax.d.ts +121 -0
  65. package/dist/src/formats/obo/syntax.d.ts.map +1 -0
  66. package/dist/src/formats/obo/syntax.js +424 -0
  67. package/dist/src/formats/obo/syntax.js.map +1 -0
  68. package/dist/src/index.d.ts +1 -0
  69. package/dist/src/index.d.ts.map +1 -1
  70. package/dist/src/index.js +1 -0
  71. package/dist/src/index.js.map +1 -1
  72. package/dist/src/registry.d.ts.map +1 -1
  73. package/dist/src/registry.js +3 -1
  74. package/dist/src/registry.js.map +1 -1
  75. package/dist/src/sniff.d.ts +1 -1
  76. package/dist/src/sniff.d.ts.map +1 -1
  77. package/dist/src/sniff.js +23 -3
  78. package/dist/src/sniff.js.map +1 -1
  79. package/package.json +6 -1
  80. package/src/common/ontology.ts +169 -0
  81. package/src/formats/json/dialect.ts +37 -7
  82. package/src/formats/json/importer.ts +204 -27
  83. package/src/formats/json/obographs.ts +563 -0
  84. package/src/formats/obo/importer.ts +1695 -0
  85. package/src/formats/obo/index.ts +7 -0
  86. package/src/formats/obo/syntax.ts +466 -0
  87. package/src/index.ts +1 -0
  88. package/src/registry.ts +3 -1
  89. package/src/sniff.ts +35 -5
  90. package/dist/chunks/importer-B6rKRxzv.js.map +0 -1
  91. package/dist/chunks/writer-DHHfHn11.js.map +0 -1
package/dist/graph-io.js CHANGED
@@ -1,25 +1,28 @@
1
- import { I as ImportReportBuilder, a as throwIfAborted } from "./chunks/writer-DHHfHn11.js";
2
- import { A, b, B, c, d, e, C, f, g, h, D, i, j, k, l, m, n, o, p, q, r, E, s, u, v, G, H, w, x, y, z, F, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, t, aY } from "./chunks/writer-DHHfHn11.js";
1
+ import { I as ImportReportBuilder, a as throwIfAborted } from "./chunks/report-BOk0p5y8.js";
2
+ import { A, b, B, c, d, e, C, f, g, h, D, i, j, k, l, m, n, o, p, q, E, r, s, u, G, H, v, w, x, y, z, F, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, t } from "./chunks/report-BOk0p5y8.js";
3
3
  import { C as C2, c as c2, a } from "./chunks/children-CL3Cy0ez.js";
4
4
  import { GraphFormatError, GraphBuilder } from "@graphty/graph-format";
5
5
  import { csvImporter, csvExporter } from "./csv.js";
6
6
  import { CSV_CAPABILITIES, CSV_ISSUE, CSV_LOSS } from "./csv.js";
7
- import { b as dotImporter, d as dotExporter } from "./chunks/importer-Xg07gk7p.js";
8
- import { D as D2, a as a10 } from "./chunks/importer-Xg07gk7p.js";
7
+ import { b as dotImporter, d as dotExporter } from "./chunks/importer-Br_QeAeE.js";
8
+ import { D as D2, a as a10 } from "./chunks/importer-Br_QeAeE.js";
9
9
  import { gexfImporter, gexfExporter } from "./gexf.js";
10
10
  import { GEXF_1_2_CAPABILITIES, GEXF_ISSUE, GEXF_LOSS } from "./gexf.js";
11
11
  import { gmlImporter, gmlExporter } from "./gml.js";
12
12
  import { GML_ISSUE, GML_LOSS } from "./gml.js";
13
- import { b as graphmlImporter, g as graphmlExporter } from "./chunks/importer-ruMWWvVs.js";
14
- import { G as G2, a as a11 } from "./chunks/importer-ruMWWvVs.js";
15
- import { s as sniffJsonDialect, e as jsonImporter, c as jsonExporter } from "./chunks/importer-B6rKRxzv.js";
16
- import { J as J2, a as a12, b as b2, d as d2, j as j2 } from "./chunks/importer-B6rKRxzv.js";
13
+ import { b as graphmlImporter, g as graphmlExporter } from "./chunks/importer-DHagxvDD.js";
14
+ import { G as G2, a as a11 } from "./chunks/importer-DHagxvDD.js";
15
+ import { s as sniffJsonDialect, e as jsonImporter, c as jsonExporter } from "./chunks/importer-Du5crN9l.js";
16
+ import { J as J2, a as a12, b as b2, d as d2, j as j2 } from "./chunks/importer-Du5crN9l.js";
17
17
  import { neo4jImporter, neo4jExporter } from "./neo4j.js";
18
18
  import { ID_SPACE_COLUMN, LABELS_COLUMN, NEO4J_CAPABILITIES, NEO4J_ISSUE, NEO4J_LOSS, ORIGINAL_ID_COLUMN, TYPE_COLUMN } from "./neo4j.js";
19
- import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-BmOl9gLW.js";
20
- import { P as P2, a as a13 } from "./chunks/importer-BmOl9gLW.js";
21
- import { T as T2, W as W2, i as i2, a as a14, p as p2 } from "./chunks/text-Dr0Ifpag.js";
22
- import { X as X2, a as a15, h as h2, t as t2, x as x2 } from "./chunks/escape-scjHxjpr.js";
19
+ import { o as oboImporter } from "./chunks/importer-aNJfe0qu.js";
20
+ import { O as O2 } from "./chunks/importer-aNJfe0qu.js";
21
+ import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-d0uQxFp6.js";
22
+ import { P as P2, a as a13 } from "./chunks/importer-d0uQxFp6.js";
23
+ import { D as D3, L as L2, N as N2, c as c3, a as a14, b as b3, d as d3, e as e2, f as f2, g as g2, h as h2, i as i2, j as j3, k as k2, l as l2, m as m2, n as n2, o as o2, p as p2, s as s2, t as t2 } from "./chunks/writer-GAdltGmC.js";
24
+ import { T as T2, W as W2, i as i3, a as a15, p as p3 } from "./chunks/text-Dr0Ifpag.js";
25
+ import { X as X2, a as a16, h as h3, t as t3, x as x2 } from "./chunks/escape-D-gZWO26.js";
23
26
  const GRAPH_FORMATS = Object.freeze([
24
27
  "json",
25
28
  "graphml",
@@ -28,7 +31,8 @@ const GRAPH_FORMATS = Object.freeze([
28
31
  "gml",
29
32
  "dot",
30
33
  "pajek",
31
- "neo4j"
34
+ "neo4j",
35
+ "obo"
32
36
  ]);
33
37
  const SNIFF_HEAD_BYTES = 8192;
34
38
  function extensionOf(filename) {
@@ -60,8 +64,8 @@ function rankFormats(hints, importers) {
60
64
  const candidates = [];
61
65
  let rank = 0;
62
66
  for (const importer of importers) {
63
- const extensionMatch = extension !== null && importer.extensions.some((e2) => e2.toLowerCase() === extension);
64
- const mimeMatch = mime !== null && importer.mimeTypes.some((m2) => m2.toLowerCase() === mime);
67
+ const extensionMatch = extension !== null && importer.extensions.some((e3) => e3.toLowerCase() === extension);
68
+ const mimeMatch = mime !== null && importer.mimeTypes.some((m3) => m3.toLowerCase() === mime);
65
69
  let content = 0;
66
70
  if (head !== null && head.byteLength > 0 && typeof importer.sniff === "function") {
67
71
  content = clamp(importer.sniff(head));
@@ -85,8 +89,8 @@ function rankFormats(hints, importers) {
85
89
  });
86
90
  candidates.push({ result: result2, rank: rank++ });
87
91
  }
88
- candidates.sort((a16, b3) => b3.result.confidence - a16.result.confidence || a16.rank - b3.rank);
89
- return candidates.map((c3) => c3.result);
92
+ candidates.sort((a17, b4) => b4.result.confidence - a17.result.confidence || a17.rank - b4.rank);
93
+ return candidates.map((c4) => c4.result);
90
94
  }
91
95
  function sniffFormat(hints, importers) {
92
96
  const ranked = rankFormats(hints, importers);
@@ -124,9 +128,19 @@ function skeletonOf(text) {
124
128
  case "options":
125
129
  root[key] = objectOf(keys.get(key));
126
130
  break;
127
- case "graphs":
128
- root[key] = [];
131
+ case "graphs": {
132
+ const nodes = keys.get("graphs[0].nodes[]");
133
+ const edges = keys.get("graphs[0].edges[]");
134
+ const graph = {};
135
+ if (nodes !== void 0) {
136
+ graph.nodes = [objectOf(nodes)];
137
+ }
138
+ if (edges !== void 0) {
139
+ graph.edges = [objectOf(edges)];
140
+ }
141
+ root[key] = nodes === void 0 && edges === void 0 ? [] : [graph];
129
142
  break;
143
+ }
130
144
  case "nodes":
131
145
  case "edges":
132
146
  case "links": {
@@ -168,6 +182,9 @@ function scanKeys(text) {
168
182
  if (depth === 2 && kinds[0] === "object" && kinds[1] === "object") {
169
183
  return labels[1] === "graph" || labels[1] === "options" ? labels[1] : null;
170
184
  }
185
+ if (depth === 5 && kinds.join() === "object,array,object,array,object" && labels[1] === "graphs" && labels[2] === "0" && (labels[3] === "nodes" || labels[3] === "edges")) {
186
+ return labels[3] === "nodes" ? "graphs[0].nodes[]" : "graphs[0].edges[]";
187
+ }
171
188
  if (depth === 3 && kinds[0] === "object" && kinds[1] === "array" && kinds[2] === "object") {
172
189
  const section = labels[1];
173
190
  if ((section === "nodes" || section === "edges" || section === "links") && labels[2] === "0") {
@@ -176,17 +193,17 @@ function scanKeys(text) {
176
193
  }
177
194
  return null;
178
195
  };
179
- let i3 = 0;
180
- const n2 = text.length;
181
- while (i3 < n2) {
182
- const ch = text[i3];
196
+ let i4 = 0;
197
+ const n3 = text.length;
198
+ while (i4 < n3) {
199
+ const ch = text[i4];
183
200
  if (ch === '"') {
184
- const end = scanString(text, i3 + 1);
201
+ const end = scanString(text, i4 + 1);
185
202
  if (end < 0) {
186
203
  break;
187
204
  }
188
- const literal = text.slice(i3 + 1, end);
189
- i3 = end + 1;
205
+ const literal = text.slice(i4 + 1, end);
206
+ i4 = end + 1;
190
207
  if (expectingKey) {
191
208
  pendingKey = decodeKey(literal);
192
209
  expectingKey = false;
@@ -229,22 +246,22 @@ function scanKeys(text) {
229
246
  }
230
247
  pendingKey = null;
231
248
  }
232
- i3++;
249
+ i4++;
233
250
  }
234
251
  return found;
235
252
  }
236
253
  function scanString(text, from) {
237
- let i3 = from;
238
- while (i3 < text.length) {
239
- const ch = text[i3];
254
+ let i4 = from;
255
+ while (i4 < text.length) {
256
+ const ch = text[i4];
240
257
  if (ch === "\\") {
241
- i3 += 2;
258
+ i4 += 2;
242
259
  continue;
243
260
  }
244
261
  if (ch === '"') {
245
- return i3;
262
+ return i4;
246
263
  }
247
- i3++;
264
+ i4++;
248
265
  }
249
266
  return -1;
250
267
  }
@@ -425,7 +442,7 @@ class FormatRegistry {
425
442
  await chosen.peeked?.close();
426
443
  throw err;
427
444
  }
428
- return reports.map((report, i3) => result(chosen, builders[i3], report, options));
445
+ return reports.map((report, i4) => result(chosen, builders[i4], report, options));
429
446
  }
430
447
  /**
431
448
  * The graphs of an input that can hold several, without importing them (a Cytoscape session's
@@ -500,7 +517,7 @@ class FormatRegistry {
500
517
  }
501
518
  }
502
519
  function createRegistry() {
503
- return new FormatRegistry().registerImporter(jsonImporter).registerExporter(jsonExporter).registerImporter(graphmlImporter).registerExporter(graphmlExporter).registerImporter(gexfImporter).registerExporter(gexfExporter).registerImporter(csvImporter).registerExporter(csvExporter).registerImporter(gmlImporter).registerExporter(gmlExporter).registerImporter(dotImporter).registerExporter(dotExporter).registerImporter(pajekImporter).registerExporter(pajekExporter).registerImporter(neo4jImporter).registerExporter(neo4jExporter);
520
+ return new FormatRegistry().registerImporter(jsonImporter).registerExporter(jsonExporter).registerImporter(graphmlImporter).registerExporter(graphmlExporter).registerImporter(gexfImporter).registerExporter(gexfExporter).registerImporter(csvImporter).registerExporter(csvExporter).registerImporter(gmlImporter).registerExporter(gmlExporter).registerImporter(dotImporter).registerExporter(dotExporter).registerImporter(pajekImporter).registerExporter(pajekExporter).registerImporter(neo4jImporter).registerExporter(neo4jExporter).registerImporter(oboImporter);
504
521
  }
505
522
  const registry = createRegistry();
506
523
  function importGraph(input, options) {
@@ -604,10 +621,10 @@ async function peekHead(input, bytes, signal) {
604
621
  return { head: joinHead(buffered, bytes), input: replayed, close: () => replayed.close() };
605
622
  }
606
623
  function joinHead(chunks, bytes) {
607
- if (chunks.every((c3) => c3 instanceof Uint8Array)) {
624
+ if (chunks.every((c4) => c4 instanceof Uint8Array)) {
608
625
  const total = Math.min(
609
626
  bytes,
610
- chunks.reduce((sum, c3) => sum + c3.byteLength, 0)
627
+ chunks.reduce((sum, c4) => sum + c4.byteLength, 0)
611
628
  );
612
629
  const head = new Uint8Array(total);
613
630
  let offset = 0;
@@ -708,22 +725,22 @@ export {
708
725
  CSV_LOSS,
709
726
  C2 as ChildrenCsr,
710
727
  D as DANGLING_REFERENCE_CODE,
711
- i as DEFAULT_CHUNK_BYTES,
712
- j as DEFAULT_ERROR_LIMIT,
713
- k as DIRECTED_COLUMN,
714
- l as DIRECTION_FORCED_CODE,
715
- m as DIRECTION_REFUSED_CODE,
728
+ D3 as DEFAULT_CHUNK_BYTES,
729
+ i as DEFAULT_ERROR_LIMIT,
730
+ j as DIRECTED_COLUMN,
731
+ k as DIRECTION_FORCED_CODE,
732
+ l as DIRECTION_REFUSED_CODE,
716
733
  D2 as DOT_ISSUE,
717
734
  a10 as DOT_LOSS,
718
- n as DUPLICATE_ATTRIBUTE_CODE,
719
- o as DUPLICATE_EDGE_ID_CODE,
720
- p as DUPLICATE_KEY_CODE,
721
- q as DUPLICATE_NODE_CODE,
722
- r as DirectionResolver,
735
+ m as DUPLICATE_ATTRIBUTE_CODE,
736
+ n as DUPLICATE_EDGE_ID_CODE,
737
+ o as DUPLICATE_KEY_CODE,
738
+ p as DUPLICATE_NODE_CODE,
739
+ q as DirectionResolver,
723
740
  E as EMPTY_COLUMN_DROPPED_CODE,
724
- s as EMPTY_INPUT_CODE,
725
- u as ENCODING_FALLBACK_CODE,
726
- v as EQUATION_AS_TEXT_CODE,
741
+ r as EMPTY_INPUT_CODE,
742
+ s as ENCODING_FALLBACK_CODE,
743
+ u as EQUATION_AS_TEXT_CODE,
727
744
  FormatRegistry,
728
745
  GEXF_1_2_CAPABILITIES,
729
746
  GEXF_ISSUE,
@@ -735,152 +752,154 @@ export {
735
752
  GRAPH_FORMATS,
736
753
  G as GRAPH_NOT_FOUND_CODE,
737
754
  H as HYPEREDGE_CODE,
738
- w as ID_MERGED_CODE,
755
+ v as ID_MERGED_CODE,
739
756
  ID_SPACE_COLUMN,
740
- x as ID_TEXT_COLLISION_CODE,
741
- y as ID_TEXT_TYPE_CODE,
742
- z as INTEGRAL_F64_CODE,
743
- F as INVALID_ENCODING_CODE,
744
- J as INVALID_UTF8_CODE,
745
- K as IdCoercer,
746
- L as ImportError,
757
+ w as ID_TEXT_COLLISION_CODE,
758
+ x as ID_TEXT_TYPE_CODE,
759
+ y as INTEGRAL_F64_CODE,
760
+ z as INVALID_ENCODING_CODE,
761
+ F as INVALID_UTF8_CODE,
762
+ J as IdCoercer,
763
+ K as ImportError,
747
764
  ImportReportBuilder,
748
765
  J2 as JSON_DIALECTS,
749
766
  a12 as JSON_ISSUE,
750
767
  b2 as JSON_LOSS,
751
768
  LABELS_COLUMN,
752
- M as LOSS,
753
- N as LineReader,
754
- O as MISSING_ENDPOINT_CODE,
755
- P as MISSING_ID_CODE,
756
- Q as MIXED_DIRECTION_CODE,
757
- R as MULTIPLE_GRAPHS_CODE,
758
- S as MUTUAL_AS_UNDIRECTED_CODE,
759
- T as MUTUAL_COLUMN,
760
- U as MUTUAL_EXPANDED_CODE,
769
+ L2 as LOSS,
770
+ L as LineReader,
771
+ M as MISSING_ENDPOINT_CODE,
772
+ N as MISSING_ID_CODE,
773
+ O as MIXED_DIRECTION_CODE,
774
+ P as MULTIPLE_GRAPHS_CODE,
775
+ Q as MUTUAL_AS_UNDIRECTED_CODE,
776
+ R as MUTUAL_COLUMN,
777
+ S as MUTUAL_EXPANDED_CODE,
761
778
  NEO4J_CAPABILITIES,
762
779
  NEO4J_ISSUE,
763
780
  NEO4J_LOSS,
764
- V as NO_CAPABILITIES,
765
- W as NO_GRAPH_CODE,
766
- X as OPTIONS_GAINED_CODE,
767
- Y as OPTION_IGNORED_CODE,
781
+ N2 as NO_CAPABILITIES,
782
+ T as NO_GRAPH_CODE,
783
+ O2 as OBO_ISSUE,
784
+ U as OPTIONS_GAINED_CODE,
785
+ V as OPTION_IGNORED_CODE,
768
786
  ORIGINAL_ID_COLUMN,
769
- Z as PAIR_COLUMN,
787
+ W as PAIR_COLUMN,
770
788
  P2 as PAJEK_ISSUE,
771
789
  a13 as PAJEK_LOSS,
772
- _ as PARENTS_DROPPED_CODE,
773
- $ as PARENT_CYCLE_CODE,
774
- a0 as PARSE_ERROR_CODE,
775
- a1 as PRECISION_CODE,
776
- a2 as RENAMED_CODE,
777
- a3 as ROLE_ASSUMED_CODE,
778
- a4 as ROLE_DROPPED_CODE,
779
- a5 as ROLE_TAKEN_CODE,
780
- a6 as SINK_OPTION_CODE,
790
+ X as PARENTS_DROPPED_CODE,
791
+ Y as PARENT_CYCLE_CODE,
792
+ Z as PARSE_ERROR_CODE,
793
+ _ as PRECISION_CODE,
794
+ $ as RENAMED_CODE,
795
+ a0 as ROLE_ASSUMED_CODE,
796
+ a1 as ROLE_DROPPED_CODE,
797
+ a2 as ROLE_TAKEN_CODE,
798
+ a3 as SINK_OPTION_CODE,
781
799
  SNIFF_HEAD_BYTES,
782
- a7 as STATUS_FAILED_CODE,
783
- a8 as STATUS_WARNING_CODE,
784
- a9 as STORAGE_CLASS_CODE,
785
- aa as STRAY_TEXT_CODE,
786
- ab as STYLES_NOT_IMPORTED_CODE,
787
- ac as SYNTAX_CODE,
788
- ad as TEMPORAL_DROPPED_CODE,
789
- ae as TEMPORAL_TEXT_DROPPED_CODE,
790
- af as TEXT_INFERRED_CODE,
791
- ag as TOO_LARGE_CODE,
800
+ a4 as STATUS_FAILED_CODE,
801
+ a5 as STATUS_WARNING_CODE,
802
+ a6 as STORAGE_CLASS_CODE,
803
+ a7 as STRAY_TEXT_CODE,
804
+ a8 as STYLES_NOT_IMPORTED_CODE,
805
+ a9 as SYNTAX_CODE,
806
+ aa as TEMPORAL_DROPPED_CODE,
807
+ ab as TEMPORAL_TEXT_DROPPED_CODE,
808
+ ac as TEXT_INFERRED_CODE,
809
+ ad as TOO_LARGE_CODE,
792
810
  TYPE_COLUMN,
793
811
  T2 as TextCellWriter,
794
- ah as UNKNOWN_ATTR_TYPE_CODE,
795
- ai as UNKNOWN_ELEMENT_CODE,
796
- aj as UNKNOWN_ENCODING_CODE,
812
+ ae as UNKNOWN_ATTR_TYPE_CODE,
813
+ af as UNKNOWN_ELEMENT_CODE,
814
+ ag as UNKNOWN_ENCODING_CODE,
797
815
  UNKNOWN_FORMAT_CODE,
798
- ak as UNKNOWN_PARENT_CODE,
799
- al as UNKNOWN_TYPE_CODE,
800
- am as WEIGHT_KEY_CLASH_CODE,
801
- an as WIDENED_CODE,
816
+ ah as UNKNOWN_PARENT_CODE,
817
+ ai as UNKNOWN_TYPE_CODE,
818
+ aj as WEIGHT_KEY_CLASH_CODE,
819
+ ak as WIDENED_CODE,
802
820
  W2 as WIDENING_UNSUPPORTED_CODE,
803
- ao as XML_ILLEGAL_CHAR_CODE,
804
- ap as XML_SYNTAX_CODE,
821
+ al as XML_ILLEGAL_CHAR_CODE,
822
+ am as XML_SYNTAX_CODE,
805
823
  X2 as XmlSyntaxError,
806
- a15 as XmlTokenizer,
807
- aq as canonicalId,
808
- ar as capabilities,
809
- as as checkCapabilities,
824
+ a16 as XmlTokenizer,
825
+ an as canonicalId,
826
+ c3 as capabilities,
827
+ a14 as checkCapabilities,
810
828
  checkExport,
811
829
  c2 as childrenCsr,
812
830
  a as childrenFromColumn,
813
- at as chooseGraph,
814
- au as coerceId,
815
- av as coerceIdText,
816
- aw as collectBytes,
831
+ ao as chooseGraph,
832
+ ap as coerceId,
833
+ aq as coerceIdText,
834
+ b3 as collectBytes,
817
835
  createRegistry,
818
836
  csvExporter,
819
837
  csvImporter,
820
- ax as declareCompanion,
821
- ay as declareResolved,
822
- az as decodeChunks,
823
- aA as decodeEntryName,
838
+ ar as declareCompanion,
839
+ as as declareResolved,
840
+ d3 as decodeChunks,
841
+ at as decodeEntryName,
824
842
  d2 as dialectCapabilities,
825
843
  dotExporter,
826
844
  dotImporter,
827
- aB as encodeChunks,
828
- aC as explicitWeights,
845
+ e2 as encodeChunks,
846
+ f2 as explicitWeights,
829
847
  exportGraph,
830
848
  exportGraphToString,
831
849
  extensionOf,
832
- aD as formatDecimal,
833
- aE as formatF32,
834
- aF as formatF64,
835
- aG as formatGmlReal,
836
- aH as formatInteger,
850
+ g2 as formatDecimal,
851
+ h2 as formatF32,
852
+ i2 as formatF64,
853
+ j3 as formatGmlReal,
854
+ k2 as formatInteger,
837
855
  gexfExporter,
838
856
  gexfImporter,
839
857
  gmlExporter,
840
858
  gmlImporter,
841
859
  graphmlExporter,
842
860
  graphmlImporter,
843
- h2 as hasIllegalXmlChar,
861
+ h3 as hasIllegalXmlChar,
844
862
  headBytes,
845
863
  importAllGraphs,
846
864
  importGraph,
847
- i2 as inferTextDtype,
848
- aI as inputLength,
849
- aJ as isAbortError,
850
- aK as isCanonicalIntegerText,
851
- aL as isImportInput,
852
- aM as isNmtoken,
853
- a14 as isNumericText,
854
- aN as isWeightField,
855
- aO as joinText,
865
+ i3 as inferTextDtype,
866
+ au as inputLength,
867
+ av as isAbortError,
868
+ aw as isCanonicalIntegerText,
869
+ ax as isImportInput,
870
+ l2 as isNmtoken,
871
+ a15 as isNumericText,
872
+ m2 as isWeightField,
873
+ n2 as joinText,
856
874
  j2 as jsonCapabilities,
857
875
  jsonExporter,
858
876
  jsonImporter,
859
877
  listGraphs,
860
- aP as mangleNmtoken,
878
+ o2 as mangleNmtoken,
861
879
  neo4jExporter,
862
880
  neo4jImporter,
863
881
  normalizeMimeType,
864
- aQ as pairFolding,
882
+ oboImporter,
883
+ ay as pairFolding,
865
884
  pajekExporter,
866
885
  pajekImporter,
867
- p2 as parseTextCell,
868
- aR as parseWeightText,
886
+ p3 as parseTextCell,
887
+ p2 as parseWeightText,
869
888
  rankFormats,
870
- aS as readText,
889
+ az as readText,
871
890
  registry,
872
- aT as reportSinkOptions,
873
- aU as reportUnusedOptions,
874
- aV as resolveExportOptions,
875
- aW as resolveImportOptions,
876
- aX as sanitizeIds,
891
+ aA as reportSinkOptions,
892
+ aB as reportUnusedOptions,
893
+ aC as resolveExportOptions,
894
+ aD as resolveImportOptions,
895
+ s2 as sanitizeIds,
877
896
  sniff,
878
897
  sniffFormat,
879
898
  sniffJsonDialectHead,
880
899
  t as textChunks,
881
900
  throwIfAborted,
882
- aY as toReadableStream,
883
- t2 as tokenizeXml,
901
+ t2 as toReadableStream,
902
+ t3 as tokenizeXml,
884
903
  x2 as xmlIllegalTextNotes
885
904
  };
886
905
  //# sourceMappingURL=graph-io.js.map