@graphty/graph-io 0.3.24 → 0.3.26
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/README.md +49 -414
- package/dist/chunks/children-CL3Cy0ez.js.map +1 -1
- package/dist/chunks/choose-BbJI55dx.js +56 -0
- package/dist/chunks/choose-BbJI55dx.js.map +1 -0
- package/dist/chunks/constants-BCsFsMj4.js +231 -0
- package/dist/chunks/constants-BCsFsMj4.js.map +1 -0
- package/dist/chunks/{escape-B-tkk_Cl.js → escape-D0g6NNUy.js} +382 -92
- package/dist/chunks/escape-D0g6NNUy.js.map +1 -0
- package/dist/chunks/export-BTI4yQgy.js +4333 -0
- package/dist/chunks/export-BTI4yQgy.js.map +1 -0
- package/dist/chunks/exporter-BMqk5oxW.js +3465 -0
- package/dist/chunks/exporter-BMqk5oxW.js.map +1 -0
- package/dist/chunks/{importer-eUREhBGj.js → exporter-Cra2GYcN.js} +4969 -3201
- package/dist/chunks/exporter-Cra2GYcN.js.map +1 -0
- package/dist/chunks/{exporter-BGrsWamJ.js → exporter-Dxh231ZF.js} +38 -229
- package/dist/chunks/exporter-Dxh231ZF.js.map +1 -0
- package/dist/chunks/{exporter-DIeGJXAZ.js → exporter-tne475KK.js} +22 -20
- package/dist/chunks/exporter-tne475KK.js.map +1 -0
- package/dist/chunks/importer-90YWhJoF.js +2811 -0
- package/dist/chunks/importer-90YWhJoF.js.map +1 -0
- package/dist/chunks/{importer-D_e7e7LX.js → importer-Bcl1d4xH.js} +398 -145
- package/dist/chunks/importer-Bcl1d4xH.js.map +1 -0
- package/dist/chunks/{importer-BWY2FFc5.js → importer-BfIsp1f9.js} +255 -77
- package/dist/chunks/importer-BfIsp1f9.js.map +1 -0
- package/dist/chunks/{importer-zGLo8Dg_.js → importer-C_TEA1zJ.js} +484 -157
- package/dist/chunks/importer-C_TEA1zJ.js.map +1 -0
- package/dist/chunks/{importer-DET1tg6s.js → importer-DCjOvO7U.js} +1687 -310
- package/dist/chunks/importer-DCjOvO7U.js.map +1 -0
- package/dist/chunks/{importer-vi3bSdtw.js → importer-DfVu6j59.js} +509 -76
- package/dist/chunks/importer-DfVu6j59.js.map +1 -0
- package/dist/chunks/{importer-DIrbbnAf.js → importer-Dku_VAIY.js} +585 -226
- package/dist/chunks/importer-Dku_VAIY.js.map +1 -0
- package/dist/chunks/json-elements-3tnyt5uZ.js +1225 -0
- package/dist/chunks/json-elements-3tnyt5uZ.js.map +1 -0
- package/dist/chunks/ontology-export-B9Tcf37D.js +357 -0
- package/dist/chunks/ontology-export-B9Tcf37D.js.map +1 -0
- package/dist/chunks/{records-dbRkxwaq.js → records-CQXT__mY.js} +298 -114
- package/dist/chunks/records-CQXT__mY.js.map +1 -0
- package/dist/chunks/{text-Dr0Ifpag.js → text-DmcUs5_Q.js} +29 -11
- package/dist/chunks/text-DmcUs5_Q.js.map +1 -0
- package/dist/chunks/{writer-C7flM-Ih.js → writer-DxjgHwSe.js} +19 -1
- package/dist/chunks/writer-DxjgHwSe.js.map +1 -0
- package/dist/csv.js +951 -261
- package/dist/csv.js.map +1 -1
- package/dist/cx.js +6 -3
- package/dist/cx2.js +2 -2
- package/dist/cys.js +6 -3
- package/dist/dot.js +1 -1
- package/dist/gexf.js +554 -122
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +342 -85
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +1105 -213
- package/dist/graph-io.js.map +1 -1
- package/dist/graphml.js +3 -2
- package/dist/graphml.js.map +1 -1
- package/dist/json.js +3 -2
- package/dist/neo4j.js +564 -157
- package/dist/neo4j.js.map +1 -1
- package/dist/obo.js +6 -3
- package/dist/pajek.js +1 -1
- package/dist/src/children.d.ts +18 -6
- package/dist/src/children.d.ts.map +1 -1
- package/dist/src/children.js +6 -3
- package/dist/src/children.js.map +1 -1
- package/dist/src/common/attributes.d.ts +29 -11
- package/dist/src/common/attributes.d.ts.map +1 -1
- package/dist/src/common/attributes.js +25 -7
- package/dist/src/common/attributes.js.map +1 -1
- package/dist/src/common/cell-budget.d.ts +9 -2
- package/dist/src/common/cell-budget.d.ts.map +1 -1
- package/dist/src/common/cell-budget.js +11 -3
- package/dist/src/common/cell-budget.js.map +1 -1
- package/dist/src/common/choose.d.ts +19 -0
- package/dist/src/common/choose.d.ts.map +1 -0
- package/dist/src/common/choose.js +72 -0
- package/dist/src/common/choose.js.map +1 -0
- package/dist/src/common/codes.d.ts +456 -66
- package/dist/src/common/codes.d.ts.map +1 -1
- package/dist/src/common/codes.js +458 -66
- package/dist/src/common/codes.js.map +1 -1
- package/dist/src/common/compare.d.ts +81 -0
- package/dist/src/common/compare.d.ts.map +1 -0
- package/dist/src/common/compare.js +394 -0
- package/dist/src/common/compare.js.map +1 -0
- package/dist/src/common/cx-export.d.ts +123 -0
- package/dist/src/common/cx-export.d.ts.map +1 -0
- package/dist/src/common/cx-export.js +334 -0
- package/dist/src/common/cx-export.js.map +1 -0
- package/dist/src/common/declared-types.d.ts +22 -2
- package/dist/src/common/declared-types.d.ts.map +1 -1
- package/dist/src/common/declared-types.js +19 -1
- package/dist/src/common/declared-types.js.map +1 -1
- package/dist/src/common/direction.d.ts +74 -50
- package/dist/src/common/direction.d.ts.map +1 -1
- package/dist/src/common/direction.js +47 -27
- package/dist/src/common/direction.js.map +1 -1
- package/dist/src/common/escape.d.ts +21 -9
- package/dist/src/common/escape.d.ts.map +1 -1
- package/dist/src/common/escape.js +33 -17
- package/dist/src/common/escape.js.map +1 -1
- package/dist/src/common/export.d.ts +144 -32
- package/dist/src/common/export.d.ts.map +1 -1
- package/dist/src/common/export.js +216 -42
- package/dist/src/common/export.js.map +1 -1
- package/dist/src/common/format.d.ts +23 -1
- package/dist/src/common/format.d.ts.map +1 -1
- package/dist/src/common/format.js +26 -1
- package/dist/src/common/format.js.map +1 -1
- package/dist/src/common/ids.d.ts +9 -2
- package/dist/src/common/ids.d.ts.map +1 -1
- package/dist/src/common/ids.js +6 -2
- package/dist/src/common/ids.js.map +1 -1
- package/dist/src/common/input.d.ts +122 -28
- package/dist/src/common/input.d.ts.map +1 -1
- package/dist/src/common/input.js +890 -124
- package/dist/src/common/input.js.map +1 -1
- package/dist/src/common/json-elements.d.ts +144 -20
- package/dist/src/common/json-elements.d.ts.map +1 -1
- package/dist/src/common/json-elements.js +868 -188
- package/dist/src/common/json-elements.js.map +1 -1
- package/dist/src/common/line-format.d.ts +90 -0
- package/dist/src/common/line-format.d.ts.map +1 -0
- package/dist/src/common/line-format.js +185 -0
- package/dist/src/common/line-format.js.map +1 -0
- package/dist/src/common/lists.d.ts +6 -1
- package/dist/src/common/lists.d.ts.map +1 -1
- package/dist/src/common/lists.js +2 -0
- package/dist/src/common/lists.js.map +1 -1
- package/dist/src/common/ontology-export.d.ts +167 -0
- package/dist/src/common/ontology-export.d.ts.map +1 -0
- package/dist/src/common/ontology-export.js +359 -0
- package/dist/src/common/ontology-export.js.map +1 -0
- package/dist/src/common/ontology.d.ts +25 -3
- package/dist/src/common/ontology.d.ts.map +1 -1
- package/dist/src/common/ontology.js +30 -9
- package/dist/src/common/ontology.js.map +1 -1
- package/dist/src/common/options.d.ts +62 -12
- package/dist/src/common/options.d.ts.map +1 -1
- package/dist/src/common/options.js +89 -11
- package/dist/src/common/options.js.map +1 -1
- package/dist/src/common/plural.d.ts +31 -0
- package/dist/src/common/plural.d.ts.map +1 -0
- package/dist/src/common/plural.js +46 -0
- package/dist/src/common/plural.js.map +1 -0
- package/dist/src/common/report.d.ts +72 -14
- package/dist/src/common/report.d.ts.map +1 -1
- package/dist/src/common/report.js +146 -22
- package/dist/src/common/report.js.map +1 -1
- package/dist/src/common/temporal.d.ts +22 -5
- package/dist/src/common/temporal.d.ts.map +1 -1
- package/dist/src/common/temporal.js +13 -2
- package/dist/src/common/temporal.js.map +1 -1
- package/dist/src/common/text.d.ts +39 -23
- package/dist/src/common/text.d.ts.map +1 -1
- package/dist/src/common/text.js +51 -21
- package/dist/src/common/text.js.map +1 -1
- package/dist/src/common/weights.d.ts +37 -4
- package/dist/src/common/weights.d.ts.map +1 -1
- package/dist/src/common/weights.js +61 -2
- package/dist/src/common/weights.js.map +1 -1
- package/dist/src/common/writer.d.ts +19 -3
- package/dist/src/common/writer.d.ts.map +1 -1
- package/dist/src/common/writer.js +30 -2
- package/dist/src/common/writer.js.map +1 -1
- package/dist/src/common/xml.d.ts +125 -9
- package/dist/src/common/xml.d.ts.map +1 -1
- package/dist/src/common/xml.js +400 -83
- package/dist/src/common/xml.js.map +1 -1
- package/dist/src/common/zip.d.ts +44 -4
- package/dist/src/common/zip.d.ts.map +1 -1
- package/dist/src/common/zip.js +134 -5
- package/dist/src/common/zip.js.map +1 -1
- package/dist/src/formats/csv/exporter.d.ts +80 -24
- package/dist/src/formats/csv/exporter.d.ts.map +1 -1
- package/dist/src/formats/csv/exporter.js +145 -32
- package/dist/src/formats/csv/exporter.js.map +1 -1
- package/dist/src/formats/csv/header.d.ts +38 -9
- package/dist/src/formats/csv/header.d.ts.map +1 -1
- package/dist/src/formats/csv/header.js +46 -10
- package/dist/src/formats/csv/header.js.map +1 -1
- package/dist/src/formats/csv/importer.d.ts +187 -37
- package/dist/src/formats/csv/importer.d.ts.map +1 -1
- package/dist/src/formats/csv/importer.js +835 -204
- package/dist/src/formats/csv/importer.js.map +1 -1
- package/dist/src/formats/csv/index.d.ts +100 -19
- package/dist/src/formats/csv/index.d.ts.map +1 -1
- package/dist/src/formats/csv/index.js +94 -21
- package/dist/src/formats/csv/index.js.map +1 -1
- package/dist/src/formats/csv/records.d.ts +95 -10
- package/dist/src/formats/csv/records.d.ts.map +1 -1
- package/dist/src/formats/csv/records.js +333 -122
- package/dist/src/formats/csv/records.js.map +1 -1
- package/dist/src/formats/csv/values.d.ts +1 -0
- package/dist/src/formats/csv/values.d.ts.map +1 -1
- package/dist/src/formats/csv/values.js +1 -0
- package/dist/src/formats/csv/values.js.map +1 -1
- package/dist/src/formats/cx/exporter.d.ts +102 -0
- package/dist/src/formats/cx/exporter.d.ts.map +1 -0
- package/dist/src/formats/cx/exporter.js +1217 -0
- package/dist/src/formats/cx/exporter.js.map +1 -0
- package/dist/src/formats/cx/importer.d.ts +79 -32
- package/dist/src/formats/cx/importer.d.ts.map +1 -1
- package/dist/src/formats/cx/importer.js +680 -285
- package/dist/src/formats/cx/importer.js.map +1 -1
- package/dist/src/formats/cx/index.d.ts +4 -3
- package/dist/src/formats/cx/index.d.ts.map +1 -1
- package/dist/src/formats/cx/index.js +4 -3
- package/dist/src/formats/cx/index.js.map +1 -1
- package/dist/src/formats/cx2/exporter.d.ts +29 -11
- package/dist/src/formats/cx2/exporter.d.ts.map +1 -1
- package/dist/src/formats/cx2/exporter.js +39 -268
- package/dist/src/formats/cx2/exporter.js.map +1 -1
- package/dist/src/formats/cx2/importer.d.ts +78 -28
- package/dist/src/formats/cx2/importer.d.ts.map +1 -1
- package/dist/src/formats/cx2/importer.js +226 -79
- package/dist/src/formats/cx2/importer.js.map +1 -1
- package/dist/src/formats/cx2/index.d.ts +2 -1
- package/dist/src/formats/cx2/index.d.ts.map +1 -1
- package/dist/src/formats/cx2/index.js +2 -1
- package/dist/src/formats/cx2/index.js.map +1 -1
- package/dist/src/formats/cys/constants.d.ts +66 -17
- package/dist/src/formats/cys/constants.d.ts.map +1 -1
- package/dist/src/formats/cys/constants.js +59 -18
- package/dist/src/formats/cys/constants.js.map +1 -1
- package/dist/src/formats/cys/exporter.d.ts +118 -0
- package/dist/src/formats/cys/exporter.d.ts.map +1 -0
- package/dist/src/formats/cys/exporter.js +1072 -0
- package/dist/src/formats/cys/exporter.js.map +1 -0
- package/dist/src/formats/cys/importer.d.ts +22 -8
- package/dist/src/formats/cys/importer.d.ts.map +1 -1
- package/dist/src/formats/cys/importer.js +510 -149
- package/dist/src/formats/cys/importer.js.map +1 -1
- package/dist/src/formats/cys/index.d.ts +4 -2
- package/dist/src/formats/cys/index.d.ts.map +1 -1
- package/dist/src/formats/cys/index.js +4 -2
- package/dist/src/formats/cys/index.js.map +1 -1
- package/dist/src/formats/cys/session.d.ts +46 -7
- package/dist/src/formats/cys/session.d.ts.map +1 -1
- package/dist/src/formats/cys/session.js +98 -24
- package/dist/src/formats/cys/session.js.map +1 -1
- package/dist/src/formats/cys/tables.d.ts +9 -2
- package/dist/src/formats/cys/tables.d.ts.map +1 -1
- package/dist/src/formats/cys/tables.js +29 -7
- package/dist/src/formats/cys/tables.js.map +1 -1
- package/dist/src/formats/dot/exporter.d.ts +42 -14
- package/dist/src/formats/dot/exporter.d.ts.map +1 -1
- package/dist/src/formats/dot/exporter.js +56 -29
- package/dist/src/formats/dot/exporter.js.map +1 -1
- package/dist/src/formats/dot/importer.d.ts +91 -29
- package/dist/src/formats/dot/importer.d.ts.map +1 -1
- package/dist/src/formats/dot/importer.js +190 -39
- package/dist/src/formats/dot/importer.js.map +1 -1
- package/dist/src/formats/dot/index.d.ts +2 -1
- package/dist/src/formats/dot/index.d.ts.map +1 -1
- package/dist/src/formats/dot/index.js +2 -1
- package/dist/src/formats/dot/index.js.map +1 -1
- package/dist/src/formats/dot/names.d.ts +44 -11
- package/dist/src/formats/dot/names.d.ts.map +1 -1
- package/dist/src/formats/dot/names.js +44 -11
- package/dist/src/formats/dot/names.js.map +1 -1
- package/dist/src/formats/dot/tokenizer.d.ts +9 -2
- package/dist/src/formats/dot/tokenizer.d.ts.map +1 -1
- package/dist/src/formats/dot/tokenizer.js +20 -5
- package/dist/src/formats/dot/tokenizer.js.map +1 -1
- package/dist/src/formats/gexf/exporter.d.ts +46 -15
- package/dist/src/formats/gexf/exporter.d.ts.map +1 -1
- package/dist/src/formats/gexf/exporter.js +45 -15
- package/dist/src/formats/gexf/exporter.js.map +1 -1
- package/dist/src/formats/gexf/importer.d.ts +87 -23
- package/dist/src/formats/gexf/importer.d.ts.map +1 -1
- package/dist/src/formats/gexf/importer.js +471 -90
- package/dist/src/formats/gexf/importer.js.map +1 -1
- package/dist/src/formats/gexf/index.d.ts +84 -21
- package/dist/src/formats/gexf/index.d.ts.map +1 -1
- package/dist/src/formats/gexf/index.js +80 -23
- package/dist/src/formats/gexf/index.js.map +1 -1
- package/dist/src/formats/gexf/schema.d.ts +67 -15
- package/dist/src/formats/gexf/schema.d.ts.map +1 -1
- package/dist/src/formats/gexf/schema.js +59 -13
- package/dist/src/formats/gexf/schema.js.map +1 -1
- package/dist/src/formats/gml/exporter.d.ts +69 -21
- package/dist/src/formats/gml/exporter.d.ts.map +1 -1
- package/dist/src/formats/gml/exporter.js +74 -29
- package/dist/src/formats/gml/exporter.js.map +1 -1
- package/dist/src/formats/gml/importer.d.ts +116 -25
- package/dist/src/formats/gml/importer.d.ts.map +1 -1
- package/dist/src/formats/gml/importer.js +290 -61
- package/dist/src/formats/gml/importer.js.map +1 -1
- package/dist/src/formats/gml/index.d.ts +87 -24
- package/dist/src/formats/gml/index.d.ts.map +1 -1
- package/dist/src/formats/gml/index.js +79 -26
- package/dist/src/formats/gml/index.js.map +1 -1
- package/dist/src/formats/gml/syntax.d.ts +67 -18
- package/dist/src/formats/gml/syntax.d.ts.map +1 -1
- package/dist/src/formats/gml/syntax.js +108 -26
- package/dist/src/formats/gml/syntax.js.map +1 -1
- package/dist/src/formats/graphml/constants.d.ts +174 -44
- package/dist/src/formats/graphml/constants.d.ts.map +1 -1
- package/dist/src/formats/graphml/constants.js +165 -44
- package/dist/src/formats/graphml/constants.js.map +1 -1
- package/dist/src/formats/graphml/exporter.d.ts +17 -9
- package/dist/src/formats/graphml/exporter.d.ts.map +1 -1
- package/dist/src/formats/graphml/exporter.js +33 -12
- package/dist/src/formats/graphml/exporter.js.map +1 -1
- package/dist/src/formats/graphml/importer.d.ts +19 -7
- package/dist/src/formats/graphml/importer.d.ts.map +1 -1
- package/dist/src/formats/graphml/importer.js +466 -39
- package/dist/src/formats/graphml/importer.js.map +1 -1
- package/dist/src/formats/graphml/index.d.ts +2 -1
- package/dist/src/formats/graphml/index.d.ts.map +1 -1
- package/dist/src/formats/graphml/index.js +2 -1
- package/dist/src/formats/graphml/index.js.map +1 -1
- package/dist/src/formats/graphml/tree.d.ts +6 -2
- package/dist/src/formats/graphml/tree.d.ts.map +1 -1
- package/dist/src/formats/graphml/tree.js +6 -2
- package/dist/src/formats/graphml/tree.js.map +1 -1
- package/dist/src/formats/graphml/yfiles.d.ts +8 -3
- package/dist/src/formats/graphml/yfiles.d.ts.map +1 -1
- package/dist/src/formats/graphml/yfiles.js +36 -15
- package/dist/src/formats/graphml/yfiles.js.map +1 -1
- package/dist/src/formats/json/dialect.d.ts +88 -24
- package/dist/src/formats/json/dialect.d.ts.map +1 -1
- package/dist/src/formats/json/dialect.js +109 -19
- package/dist/src/formats/json/dialect.js.map +1 -1
- package/dist/src/formats/json/exporter.d.ts +134 -22
- package/dist/src/formats/json/exporter.d.ts.map +1 -1
- package/dist/src/formats/json/exporter.js +135 -54
- package/dist/src/formats/json/exporter.js.map +1 -1
- package/dist/src/formats/json/importer.d.ts +173 -52
- package/dist/src/formats/json/importer.d.ts.map +1 -1
- package/dist/src/formats/json/importer.js +899 -220
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/json/index.d.ts +3 -2
- package/dist/src/formats/json/index.d.ts.map +1 -1
- package/dist/src/formats/json/index.js +3 -2
- package/dist/src/formats/json/index.js.map +1 -1
- package/dist/src/formats/json/obographs-export.d.ts +68 -0
- package/dist/src/formats/json/obographs-export.d.ts.map +1 -0
- package/dist/src/formats/json/obographs-export.js +941 -0
- package/dist/src/formats/json/obographs-export.js.map +1 -0
- package/dist/src/formats/json/obographs.d.ts +26 -0
- package/dist/src/formats/json/obographs.d.ts.map +1 -1
- package/dist/src/formats/json/obographs.js +297 -80
- package/dist/src/formats/json/obographs.js.map +1 -1
- package/dist/src/formats/neo4j/exporter.d.ts +109 -21
- package/dist/src/formats/neo4j/exporter.d.ts.map +1 -1
- package/dist/src/formats/neo4j/exporter.js +238 -85
- package/dist/src/formats/neo4j/exporter.js.map +1 -1
- package/dist/src/formats/neo4j/header.d.ts +17 -4
- package/dist/src/formats/neo4j/header.d.ts.map +1 -1
- package/dist/src/formats/neo4j/header.js +36 -4
- package/dist/src/formats/neo4j/header.js.map +1 -1
- package/dist/src/formats/neo4j/importer.d.ts +107 -27
- package/dist/src/formats/neo4j/importer.d.ts.map +1 -1
- package/dist/src/formats/neo4j/importer.js +415 -63
- package/dist/src/formats/neo4j/importer.js.map +1 -1
- package/dist/src/formats/neo4j/index.d.ts +73 -23
- package/dist/src/formats/neo4j/index.d.ts.map +1 -1
- package/dist/src/formats/neo4j/index.js +65 -25
- package/dist/src/formats/neo4j/index.js.map +1 -1
- package/dist/src/formats/obo/exporter.d.ts +150 -0
- package/dist/src/formats/obo/exporter.d.ts.map +1 -0
- package/dist/src/formats/obo/exporter.js +1736 -0
- package/dist/src/formats/obo/exporter.js.map +1 -0
- package/dist/src/formats/obo/importer.d.ts +95 -19
- package/dist/src/formats/obo/importer.d.ts.map +1 -1
- package/dist/src/formats/obo/importer.js +475 -104
- package/dist/src/formats/obo/importer.js.map +1 -1
- package/dist/src/formats/obo/index.d.ts +6 -3
- package/dist/src/formats/obo/index.d.ts.map +1 -1
- package/dist/src/formats/obo/index.js +6 -3
- package/dist/src/formats/obo/index.js.map +1 -1
- package/dist/src/formats/obo/syntax.d.ts +108 -4
- package/dist/src/formats/obo/syntax.d.ts.map +1 -1
- package/dist/src/formats/obo/syntax.js +211 -34
- package/dist/src/formats/obo/syntax.js.map +1 -1
- package/dist/src/formats/pajek/exporter.d.ts +54 -16
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +66 -34
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/pajek/importer.d.ts +84 -22
- package/dist/src/formats/pajek/importer.d.ts.map +1 -1
- package/dist/src/formats/pajek/importer.js +303 -83
- package/dist/src/formats/pajek/importer.js.map +1 -1
- package/dist/src/formats/pajek/index.d.ts +2 -1
- package/dist/src/formats/pajek/index.d.ts.map +1 -1
- package/dist/src/formats/pajek/index.js +2 -1
- package/dist/src/formats/pajek/index.js.map +1 -1
- package/dist/src/formats/pajek/syntax.d.ts +77 -14
- package/dist/src/formats/pajek/syntax.d.ts.map +1 -1
- package/dist/src/formats/pajek/syntax.js +183 -51
- package/dist/src/formats/pajek/syntax.js.map +1 -1
- package/dist/src/formats/xgmml/columns.d.ts +1 -0
- package/dist/src/formats/xgmml/columns.d.ts.map +1 -1
- package/dist/src/formats/xgmml/columns.js +4 -0
- package/dist/src/formats/xgmml/columns.js.map +1 -1
- package/dist/src/formats/xgmml/constants.d.ts +186 -56
- package/dist/src/formats/xgmml/constants.d.ts.map +1 -1
- package/dist/src/formats/xgmml/constants.js +181 -57
- package/dist/src/formats/xgmml/constants.js.map +1 -1
- package/dist/src/formats/xgmml/document.d.ts +65 -11
- package/dist/src/formats/xgmml/document.d.ts.map +1 -1
- package/dist/src/formats/xgmml/document.js +157 -28
- package/dist/src/formats/xgmml/document.js.map +1 -1
- package/dist/src/formats/xgmml/emit.d.ts +61 -3
- package/dist/src/formats/xgmml/emit.d.ts.map +1 -1
- package/dist/src/formats/xgmml/emit.js +129 -26
- package/dist/src/formats/xgmml/emit.js.map +1 -1
- package/dist/src/formats/xgmml/exporter.d.ts +13 -6
- package/dist/src/formats/xgmml/exporter.d.ts.map +1 -1
- package/dist/src/formats/xgmml/exporter.js +20 -21
- package/dist/src/formats/xgmml/exporter.js.map +1 -1
- package/dist/src/formats/xgmml/importer.d.ts +33 -12
- package/dist/src/formats/xgmml/importer.d.ts.map +1 -1
- package/dist/src/formats/xgmml/importer.js +35 -72
- package/dist/src/formats/xgmml/importer.js.map +1 -1
- package/dist/src/formats/xgmml/index.d.ts +1 -0
- package/dist/src/formats/xgmml/index.d.ts.map +1 -1
- package/dist/src/formats/xgmml/index.js +1 -0
- package/dist/src/formats/xgmml/index.js.map +1 -1
- package/dist/src/formats/xgmml/values.d.ts +8 -1
- package/dist/src/formats/xgmml/values.d.ts.map +1 -1
- package/dist/src/formats/xgmml/values.js +7 -2
- package/dist/src/formats/xgmml/values.js.map +1 -1
- package/dist/src/index.d.ts +23 -18
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +28 -16
- package/dist/src/index.js.map +1 -1
- package/dist/src/registry.d.ts +478 -92
- package/dist/src/registry.d.ts.map +1 -1
- package/dist/src/registry.js +807 -88
- package/dist/src/registry.js.map +1 -1
- package/dist/src/sniff.d.ts +61 -19
- package/dist/src/sniff.d.ts.map +1 -1
- package/dist/src/sniff.js +121 -29
- package/dist/src/sniff.js.map +1 -1
- package/dist/src/types.d.ts +362 -112
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +28 -7
- package/dist/src/types.js.map +1 -1
- package/dist/xgmml.js +2 -2
- package/docs/samples/README.md +25 -0
- package/docs/samples/got-edges.csv +353 -0
- package/docs/samples/got-network.graphml +1384 -0
- package/docs/samples/got-nodes.csv +108 -0
- package/docs/samples/got.cx +930 -0
- package/docs/samples/got.cx2 +465 -0
- package/docs/samples/got.gexf +471 -0
- package/docs/samples/got.gml +2650 -0
- package/docs/samples/got.json +2546 -0
- package/docs/samples/got.net +461 -0
- package/docs/samples/movies-nodes.csv +9 -0
- package/docs/samples/movies-rels.csv +8 -0
- package/docs/samples/networks.cys +0 -0
- package/docs/samples/proteins.xgmml +9 -0
- package/docs/samples/teams.gv +24 -0
- package/docs/samples/vehicles.obo +25 -0
- package/package.json +9 -4
- package/src/children.ts +18 -6
- package/src/common/attributes.ts +29 -11
- package/src/common/cell-budget.ts +11 -3
- package/src/common/choose.ts +89 -0
- package/src/common/codes.ts +490 -66
- package/src/common/compare.ts +472 -0
- package/src/common/cx-export.ts +432 -0
- package/src/common/declared-types.ts +38 -4
- package/src/common/direction.ts +78 -51
- package/src/common/escape.ts +33 -17
- package/src/common/export.ts +284 -47
- package/src/common/format.ts +30 -1
- package/src/common/ids.ts +14 -3
- package/src/common/input.ts +1057 -134
- package/src/common/json-elements.ts +1034 -198
- package/src/common/line-format.ts +249 -0
- package/src/common/lists.ts +6 -1
- package/src/common/ontology-export.ts +461 -0
- package/src/common/ontology.ts +31 -9
- package/src/common/options.ts +110 -15
- package/src/common/plural.ts +49 -0
- package/src/common/report.ts +168 -25
- package/src/common/temporal.ts +22 -5
- package/src/common/text.ts +62 -23
- package/src/common/weights.ts +74 -4
- package/src/common/writer.ts +37 -3
- package/src/common/xml.ts +477 -88
- package/src/common/zip.ts +169 -7
- package/src/formats/csv/exporter.ts +201 -46
- package/src/formats/csv/header.ts +50 -11
- package/src/formats/csv/importer.ts +1133 -245
- package/src/formats/csv/index.ts +106 -19
- package/src/formats/csv/records.ts +396 -122
- package/src/formats/csv/values.ts +1 -0
- package/src/formats/cx/exporter.ts +1483 -0
- package/src/formats/cx/importer.ts +888 -300
- package/src/formats/cx/index.ts +4 -3
- package/src/formats/cx2/exporter.ts +61 -338
- package/src/formats/cx2/importer.ts +317 -86
- package/src/formats/cx2/index.ts +2 -1
- package/src/formats/cys/constants.ts +62 -17
- package/src/formats/cys/exporter.ts +1368 -0
- package/src/formats/cys/importer.ts +659 -157
- package/src/formats/cys/index.ts +4 -2
- package/src/formats/cys/session.ts +139 -31
- package/src/formats/cys/tables.ts +47 -9
- package/src/formats/dot/exporter.ts +83 -37
- package/src/formats/dot/importer.ts +248 -54
- package/src/formats/dot/index.ts +2 -1
- package/src/formats/dot/names.ts +44 -11
- package/src/formats/dot/tokenizer.ts +25 -6
- package/src/formats/gexf/exporter.ts +57 -18
- package/src/formats/gexf/importer.ts +636 -105
- package/src/formats/gexf/index.ts +90 -21
- package/src/formats/gexf/schema.ts +67 -15
- package/src/formats/gml/exporter.ts +90 -36
- package/src/formats/gml/importer.ts +388 -67
- package/src/formats/gml/index.ts +85 -24
- package/src/formats/gml/syntax.ts +111 -26
- package/src/formats/graphml/constants.ts +178 -44
- package/src/formats/graphml/exporter.ts +52 -18
- package/src/formats/graphml/importer.ts +640 -60
- package/src/formats/graphml/index.ts +2 -1
- package/src/formats/graphml/tree.ts +6 -2
- package/src/formats/graphml/yfiles.ts +37 -15
- package/src/formats/json/dialect.ts +128 -29
- package/src/formats/json/exporter.ts +205 -68
- package/src/formats/json/importer.ts +1163 -253
- package/src/formats/json/index.ts +3 -1
- package/src/formats/json/obographs-export.ts +1197 -0
- package/src/formats/json/obographs.ts +353 -92
- package/src/formats/neo4j/exporter.ts +320 -101
- package/src/formats/neo4j/header.ts +44 -6
- package/src/formats/neo4j/importer.ts +512 -73
- package/src/formats/neo4j/index.ts +75 -23
- package/src/formats/obo/exporter.ts +2210 -0
- package/src/formats/obo/importer.ts +622 -109
- package/src/formats/obo/index.ts +6 -3
- package/src/formats/obo/syntax.ts +232 -37
- package/src/formats/pajek/exporter.ts +89 -41
- package/src/formats/pajek/importer.ts +407 -93
- package/src/formats/pajek/index.ts +2 -1
- package/src/formats/pajek/syntax.ts +213 -52
- package/src/formats/xgmml/columns.ts +10 -0
- package/src/formats/xgmml/constants.ts +183 -56
- package/src/formats/xgmml/document.ts +212 -34
- package/src/formats/xgmml/emit.ts +175 -34
- package/src/formats/xgmml/exporter.ts +35 -27
- package/src/formats/xgmml/importer.ts +64 -86
- package/src/formats/xgmml/index.ts +1 -0
- package/src/formats/xgmml/values.ts +11 -3
- package/src/index.ts +81 -11
- package/src/registry.ts +1121 -135
- package/src/sniff.ts +163 -32
- package/src/types.ts +385 -114
- package/dist/chunks/escape-B-tkk_Cl.js.map +0 -1
- package/dist/chunks/export-Bh60Dv-n.js +0 -582
- package/dist/chunks/export-Bh60Dv-n.js.map +0 -1
- package/dist/chunks/exporter-BGrsWamJ.js.map +0 -1
- package/dist/chunks/exporter-DIeGJXAZ.js.map +0 -1
- package/dist/chunks/importer-BWY2FFc5.js.map +0 -1
- package/dist/chunks/importer-DD-xv9_Y.js +0 -1471
- package/dist/chunks/importer-DD-xv9_Y.js.map +0 -1
- package/dist/chunks/importer-DET1tg6s.js.map +0 -1
- package/dist/chunks/importer-DEcKhsmQ.js +0 -1614
- package/dist/chunks/importer-DEcKhsmQ.js.map +0 -1
- package/dist/chunks/importer-DIrbbnAf.js.map +0 -1
- package/dist/chunks/importer-D_e7e7LX.js.map +0 -1
- package/dist/chunks/importer-eUREhBGj.js.map +0 -1
- package/dist/chunks/importer-vi3bSdtw.js.map +0 -1
- package/dist/chunks/importer-zGLo8Dg_.js.map +0 -1
- package/dist/chunks/json-elements-DDS8N2Dd.js +0 -779
- package/dist/chunks/json-elements-DDS8N2Dd.js.map +0 -1
- package/dist/chunks/ontology-BnrJ4I98.js +0 -113
- package/dist/chunks/ontology-BnrJ4I98.js.map +0 -1
- package/dist/chunks/records-dbRkxwaq.js.map +0 -1
- package/dist/chunks/report-B1z4WT9e.js +0 -2372
- package/dist/chunks/report-B1z4WT9e.js.map +0 -1
- package/dist/chunks/text-Dr0Ifpag.js.map +0 -1
- package/dist/chunks/weights-Dzba96G3.js +0 -176
- package/dist/chunks/weights-Dzba96G3.js.map +0 -1
- package/dist/chunks/writer-C7flM-Ih.js.map +0 -1
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
*Vertices 107
|
|
2
|
+
1 Aemon
|
|
3
|
+
2 Grenn
|
|
4
|
+
3 Samwell
|
|
5
|
+
4 Aerys
|
|
6
|
+
5 Jaime
|
|
7
|
+
6 Robert
|
|
8
|
+
7 Tyrion
|
|
9
|
+
8 Tywin
|
|
10
|
+
9 Alliser
|
|
11
|
+
10 Mance
|
|
12
|
+
11 Amory
|
|
13
|
+
12 Oberyn
|
|
14
|
+
13 Arya
|
|
15
|
+
14 Anguy
|
|
16
|
+
15 Beric
|
|
17
|
+
16 Bran
|
|
18
|
+
17 Brynden
|
|
19
|
+
18 Cersei
|
|
20
|
+
19 Gendry
|
|
21
|
+
20 Gregor
|
|
22
|
+
21 Joffrey
|
|
23
|
+
22 Jon
|
|
24
|
+
23 Rickon
|
|
25
|
+
24 Roose
|
|
26
|
+
25 Sandor
|
|
27
|
+
26 Thoros
|
|
28
|
+
27 Balon
|
|
29
|
+
28 Loras
|
|
30
|
+
29 Belwas
|
|
31
|
+
30 Barristan
|
|
32
|
+
31 Illyrio
|
|
33
|
+
32 Hodor
|
|
34
|
+
33 Jojen
|
|
35
|
+
34 Luwin
|
|
36
|
+
35 Meera
|
|
37
|
+
36 Nan
|
|
38
|
+
37 Theon
|
|
39
|
+
38 Brienne
|
|
40
|
+
39 Bronn
|
|
41
|
+
40 Podrick
|
|
42
|
+
41 Lothar
|
|
43
|
+
42 Walder
|
|
44
|
+
43 Catelyn
|
|
45
|
+
44 Edmure
|
|
46
|
+
45 Hoster
|
|
47
|
+
46 Jeyne
|
|
48
|
+
47 Lysa
|
|
49
|
+
48 Petyr
|
|
50
|
+
49 Robb
|
|
51
|
+
50 Roslin
|
|
52
|
+
51 Sansa
|
|
53
|
+
52 Stannis
|
|
54
|
+
53 Elia
|
|
55
|
+
54 Ilyn
|
|
56
|
+
55 Meryn
|
|
57
|
+
56 Pycelle
|
|
58
|
+
57 Shae
|
|
59
|
+
58 Varys
|
|
60
|
+
59 Craster
|
|
61
|
+
60 Karl
|
|
62
|
+
61 Daario
|
|
63
|
+
62 Drogo
|
|
64
|
+
63 Irri
|
|
65
|
+
64 Daenerys
|
|
66
|
+
65 Aegon
|
|
67
|
+
66 Jorah
|
|
68
|
+
67 Kraznys
|
|
69
|
+
68 Missandei
|
|
70
|
+
69 Rakharo
|
|
71
|
+
70 Rhaegar
|
|
72
|
+
71 Viserys
|
|
73
|
+
72 Worm
|
|
74
|
+
73 Davos
|
|
75
|
+
74 Cressen
|
|
76
|
+
75 Salladhor
|
|
77
|
+
76 Eddard
|
|
78
|
+
77 Eddison
|
|
79
|
+
78 Gilly
|
|
80
|
+
79 Qyburn
|
|
81
|
+
80 Renly
|
|
82
|
+
81 Tommen
|
|
83
|
+
82 Janos
|
|
84
|
+
83 Bowen
|
|
85
|
+
84 Kevan
|
|
86
|
+
85 Margaery
|
|
87
|
+
86 Myrcella
|
|
88
|
+
87 Dalla
|
|
89
|
+
88 Melisandre
|
|
90
|
+
89 Orell
|
|
91
|
+
90 Qhorin
|
|
92
|
+
91 Rattleshirt
|
|
93
|
+
92 Styr
|
|
94
|
+
93 Val
|
|
95
|
+
94 Ygritte
|
|
96
|
+
95 "Jon Arryn"
|
|
97
|
+
96 Lancel
|
|
98
|
+
97 Olenna
|
|
99
|
+
98 Marillion
|
|
100
|
+
99 "Robert Arryn"
|
|
101
|
+
100 Ellaria
|
|
102
|
+
101 Mace
|
|
103
|
+
102 Rickard
|
|
104
|
+
103 Ramsay
|
|
105
|
+
104 Chataya
|
|
106
|
+
105 Shireen
|
|
107
|
+
106 Doran
|
|
108
|
+
107 Walton
|
|
109
|
+
*Edges
|
|
110
|
+
1 2 5
|
|
111
|
+
1 3 31
|
|
112
|
+
4 5 18
|
|
113
|
+
4 6 6
|
|
114
|
+
4 7 5
|
|
115
|
+
4 8 8
|
|
116
|
+
9 10 5
|
|
117
|
+
11 12 5
|
|
118
|
+
13 14 11
|
|
119
|
+
13 15 23
|
|
120
|
+
13 16 9
|
|
121
|
+
13 17 6
|
|
122
|
+
13 18 5
|
|
123
|
+
13 19 43
|
|
124
|
+
13 20 7
|
|
125
|
+
13 5 11
|
|
126
|
+
13 21 6
|
|
127
|
+
13 22 7
|
|
128
|
+
13 23 8
|
|
129
|
+
13 6 4
|
|
130
|
+
13 24 5
|
|
131
|
+
13 25 46
|
|
132
|
+
13 26 18
|
|
133
|
+
13 7 5
|
|
134
|
+
27 28 4
|
|
135
|
+
29 30 18
|
|
136
|
+
29 31 10
|
|
137
|
+
15 14 4
|
|
138
|
+
15 19 4
|
|
139
|
+
15 26 21
|
|
140
|
+
16 32 96
|
|
141
|
+
16 33 46
|
|
142
|
+
16 22 12
|
|
143
|
+
16 34 4
|
|
144
|
+
16 35 54
|
|
145
|
+
16 36 14
|
|
146
|
+
16 23 35
|
|
147
|
+
16 3 11
|
|
148
|
+
16 37 11
|
|
149
|
+
38 28 7
|
|
150
|
+
39 20 5
|
|
151
|
+
39 40 19
|
|
152
|
+
17 41 4
|
|
153
|
+
17 42 5
|
|
154
|
+
43 16 4
|
|
155
|
+
43 38 7
|
|
156
|
+
43 17 8
|
|
157
|
+
43 18 4
|
|
158
|
+
43 44 16
|
|
159
|
+
43 45 9
|
|
160
|
+
43 5 19
|
|
161
|
+
43 46 10
|
|
162
|
+
43 47 8
|
|
163
|
+
43 48 5
|
|
164
|
+
43 49 43
|
|
165
|
+
43 24 4
|
|
166
|
+
43 50 6
|
|
167
|
+
43 51 8
|
|
168
|
+
43 52 4
|
|
169
|
+
43 7 5
|
|
170
|
+
43 42 19
|
|
171
|
+
18 38 5
|
|
172
|
+
18 39 4
|
|
173
|
+
18 53 4
|
|
174
|
+
18 20 6
|
|
175
|
+
18 54 7
|
|
176
|
+
18 5 36
|
|
177
|
+
18 21 23
|
|
178
|
+
18 55 10
|
|
179
|
+
18 56 4
|
|
180
|
+
18 6 16
|
|
181
|
+
18 25 6
|
|
182
|
+
18 57 4
|
|
183
|
+
18 7 46
|
|
184
|
+
18 58 4
|
|
185
|
+
59 60 6
|
|
186
|
+
61 62 4
|
|
187
|
+
61 63 5
|
|
188
|
+
64 65 8
|
|
189
|
+
64 30 20
|
|
190
|
+
64 29 26
|
|
191
|
+
64 61 14
|
|
192
|
+
64 62 18
|
|
193
|
+
64 63 17
|
|
194
|
+
64 66 47
|
|
195
|
+
64 67 10
|
|
196
|
+
64 68 26
|
|
197
|
+
64 69 7
|
|
198
|
+
64 70 12
|
|
199
|
+
64 6 5
|
|
200
|
+
64 71 8
|
|
201
|
+
64 72 14
|
|
202
|
+
73 74 4
|
|
203
|
+
73 75 16
|
|
204
|
+
76 13 18
|
|
205
|
+
76 15 8
|
|
206
|
+
76 16 15
|
|
207
|
+
76 43 5
|
|
208
|
+
76 18 6
|
|
209
|
+
76 5 6
|
|
210
|
+
76 22 8
|
|
211
|
+
76 23 8
|
|
212
|
+
76 49 13
|
|
213
|
+
76 6 10
|
|
214
|
+
76 25 5
|
|
215
|
+
76 51 6
|
|
216
|
+
77 2 8
|
|
217
|
+
44 17 7
|
|
218
|
+
44 41 4
|
|
219
|
+
44 50 16
|
|
220
|
+
44 42 9
|
|
221
|
+
19 26 7
|
|
222
|
+
78 59 17
|
|
223
|
+
20 53 9
|
|
224
|
+
20 54 7
|
|
225
|
+
20 55 7
|
|
226
|
+
20 12 24
|
|
227
|
+
20 25 12
|
|
228
|
+
32 33 35
|
|
229
|
+
32 35 41
|
|
230
|
+
45 44 9
|
|
231
|
+
63 62 7
|
|
232
|
+
5 27 6
|
|
233
|
+
5 30 4
|
|
234
|
+
5 38 88
|
|
235
|
+
5 44 5
|
|
236
|
+
5 53 4
|
|
237
|
+
5 20 6
|
|
238
|
+
5 21 15
|
|
239
|
+
5 28 16
|
|
240
|
+
5 55 11
|
|
241
|
+
5 79 11
|
|
242
|
+
5 80 7
|
|
243
|
+
5 6 17
|
|
244
|
+
5 52 5
|
|
245
|
+
5 81 8
|
|
246
|
+
5 7 31
|
|
247
|
+
82 9 9
|
|
248
|
+
82 83 5
|
|
249
|
+
82 10 4
|
|
250
|
+
21 20 5
|
|
251
|
+
21 54 4
|
|
252
|
+
21 84 8
|
|
253
|
+
21 28 7
|
|
254
|
+
21 85 28
|
|
255
|
+
21 55 5
|
|
256
|
+
21 86 5
|
|
257
|
+
21 12 4
|
|
258
|
+
21 25 14
|
|
259
|
+
21 52 10
|
|
260
|
+
21 81 9
|
|
261
|
+
21 7 54
|
|
262
|
+
33 35 33
|
|
263
|
+
33 3 11
|
|
264
|
+
22 1 30
|
|
265
|
+
22 9 15
|
|
266
|
+
22 59 7
|
|
267
|
+
22 87 6
|
|
268
|
+
22 77 4
|
|
269
|
+
22 78 9
|
|
270
|
+
22 2 25
|
|
271
|
+
22 82 8
|
|
272
|
+
22 10 69
|
|
273
|
+
22 35 4
|
|
274
|
+
22 88 7
|
|
275
|
+
22 89 6
|
|
276
|
+
22 90 31
|
|
277
|
+
22 91 20
|
|
278
|
+
22 6 5
|
|
279
|
+
22 3 52
|
|
280
|
+
22 52 9
|
|
281
|
+
22 92 16
|
|
282
|
+
22 37 8
|
|
283
|
+
22 93 12
|
|
284
|
+
22 94 54
|
|
285
|
+
95 47 5
|
|
286
|
+
95 6 6
|
|
287
|
+
66 30 11
|
|
288
|
+
66 29 13
|
|
289
|
+
66 61 7
|
|
290
|
+
66 62 6
|
|
291
|
+
84 96 7
|
|
292
|
+
84 58 5
|
|
293
|
+
28 85 9
|
|
294
|
+
28 97 5
|
|
295
|
+
41 50 4
|
|
296
|
+
34 36 4
|
|
297
|
+
47 18 4
|
|
298
|
+
47 45 6
|
|
299
|
+
47 98 10
|
|
300
|
+
47 48 29
|
|
301
|
+
47 99 9
|
|
302
|
+
47 7 5
|
|
303
|
+
47 8 4
|
|
304
|
+
10 59 11
|
|
305
|
+
10 87 8
|
|
306
|
+
10 78 7
|
|
307
|
+
10 90 10
|
|
308
|
+
10 91 9
|
|
309
|
+
10 92 7
|
|
310
|
+
10 93 8
|
|
311
|
+
10 94 12
|
|
312
|
+
35 3 7
|
|
313
|
+
88 73 30
|
|
314
|
+
88 3 5
|
|
315
|
+
55 54 5
|
|
316
|
+
68 63 4
|
|
317
|
+
86 81 5
|
|
318
|
+
86 7 4
|
|
319
|
+
12 100 6
|
|
320
|
+
12 101 6
|
|
321
|
+
40 85 4
|
|
322
|
+
91 90 6
|
|
323
|
+
80 28 8
|
|
324
|
+
80 85 7
|
|
325
|
+
80 58 4
|
|
326
|
+
70 30 5
|
|
327
|
+
70 53 7
|
|
328
|
+
70 66 5
|
|
329
|
+
70 6 6
|
|
330
|
+
102 17 4
|
|
331
|
+
23 37 8
|
|
332
|
+
49 13 15
|
|
333
|
+
49 27 6
|
|
334
|
+
49 16 23
|
|
335
|
+
49 38 6
|
|
336
|
+
49 17 17
|
|
337
|
+
49 44 32
|
|
338
|
+
49 32 5
|
|
339
|
+
49 5 15
|
|
340
|
+
49 46 18
|
|
341
|
+
49 21 10
|
|
342
|
+
49 22 14
|
|
343
|
+
49 41 10
|
|
344
|
+
49 48 5
|
|
345
|
+
49 103 4
|
|
346
|
+
49 102 7
|
|
347
|
+
49 23 15
|
|
348
|
+
49 24 4
|
|
349
|
+
49 51 15
|
|
350
|
+
49 52 4
|
|
351
|
+
49 37 11
|
|
352
|
+
49 7 12
|
|
353
|
+
49 8 12
|
|
354
|
+
49 42 26
|
|
355
|
+
6 1 4
|
|
356
|
+
6 30 5
|
|
357
|
+
6 80 4
|
|
358
|
+
6 52 5
|
|
359
|
+
6 26 4
|
|
360
|
+
99 98 4
|
|
361
|
+
24 38 4
|
|
362
|
+
3 83 6
|
|
363
|
+
3 59 34
|
|
364
|
+
3 77 12
|
|
365
|
+
3 78 36
|
|
366
|
+
3 2 43
|
|
367
|
+
3 82 6
|
|
368
|
+
3 10 10
|
|
369
|
+
3 90 5
|
|
370
|
+
25 15 15
|
|
371
|
+
25 19 5
|
|
372
|
+
25 54 4
|
|
373
|
+
25 55 4
|
|
374
|
+
25 6 6
|
|
375
|
+
25 26 10
|
|
376
|
+
51 13 22
|
|
377
|
+
51 16 10
|
|
378
|
+
51 38 5
|
|
379
|
+
51 18 16
|
|
380
|
+
51 5 10
|
|
381
|
+
51 21 35
|
|
382
|
+
51 22 4
|
|
383
|
+
51 84 5
|
|
384
|
+
51 28 14
|
|
385
|
+
51 47 28
|
|
386
|
+
51 85 36
|
|
387
|
+
51 98 9
|
|
388
|
+
51 86 4
|
|
389
|
+
51 97 7
|
|
390
|
+
51 48 28
|
|
391
|
+
51 40 8
|
|
392
|
+
51 80 4
|
|
393
|
+
51 23 7
|
|
394
|
+
51 6 5
|
|
395
|
+
51 99 6
|
|
396
|
+
51 25 6
|
|
397
|
+
51 57 8
|
|
398
|
+
51 7 77
|
|
399
|
+
57 104 4
|
|
400
|
+
57 58 8
|
|
401
|
+
105 73 5
|
|
402
|
+
52 1 4
|
|
403
|
+
52 27 4
|
|
404
|
+
52 73 32
|
|
405
|
+
52 88 20
|
|
406
|
+
52 80 15
|
|
407
|
+
52 3 13
|
|
408
|
+
81 85 5
|
|
409
|
+
7 27 4
|
|
410
|
+
7 39 31
|
|
411
|
+
7 104 5
|
|
412
|
+
7 106 5
|
|
413
|
+
7 53 5
|
|
414
|
+
7 100 4
|
|
415
|
+
7 20 22
|
|
416
|
+
7 54 5
|
|
417
|
+
7 82 5
|
|
418
|
+
7 84 11
|
|
419
|
+
7 28 6
|
|
420
|
+
7 101 9
|
|
421
|
+
7 85 7
|
|
422
|
+
7 55 5
|
|
423
|
+
7 12 25
|
|
424
|
+
7 48 12
|
|
425
|
+
7 40 28
|
|
426
|
+
7 56 11
|
|
427
|
+
7 80 6
|
|
428
|
+
7 6 9
|
|
429
|
+
7 25 4
|
|
430
|
+
7 57 21
|
|
431
|
+
7 52 6
|
|
432
|
+
7 58 18
|
|
433
|
+
8 27 5
|
|
434
|
+
8 17 4
|
|
435
|
+
8 18 16
|
|
436
|
+
8 20 7
|
|
437
|
+
8 5 13
|
|
438
|
+
8 21 13
|
|
439
|
+
8 84 14
|
|
440
|
+
8 101 5
|
|
441
|
+
8 12 6
|
|
442
|
+
8 48 4
|
|
443
|
+
8 40 5
|
|
444
|
+
8 56 5
|
|
445
|
+
8 6 11
|
|
446
|
+
8 52 15
|
|
447
|
+
8 81 4
|
|
448
|
+
8 7 39
|
|
449
|
+
8 93 4
|
|
450
|
+
8 58 6
|
|
451
|
+
8 42 4
|
|
452
|
+
93 87 7
|
|
453
|
+
58 56 4
|
|
454
|
+
71 70 7
|
|
455
|
+
71 7 4
|
|
456
|
+
42 41 12
|
|
457
|
+
42 48 6
|
|
458
|
+
42 50 6
|
|
459
|
+
107 5 10
|
|
460
|
+
94 90 7
|
|
461
|
+
94 91 9
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
movieId:ID(Movie),title,released:int,:LABEL
|
|
2
|
+
m1,The Matrix,1999,Movie
|
|
3
|
+
m2,"Matrix, Reloaded",2003,Movie;Sequel
|
|
4
|
+
m3,Cloud Atlas,2012,Movie
|
|
5
|
+
personId:ID(Person),name,born:int,:LABEL
|
|
6
|
+
p1,Keanu Reeves,1964,Person;Actor
|
|
7
|
+
p2,Carrie-Anne Moss,1967,Person;Actor
|
|
8
|
+
p3,Lana Wachowski,1965,Person;Director
|
|
9
|
+
p4,Tom Hanks,1956,Person;Actor
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
+
<graph id="1" label="Network" directed="1" cy:documentVersion="3.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cy="http://www.cytoscape.org" xmlns="http://www.cs.rpi.edu/XGMML">
|
|
3
|
+
<att name="name" value="small" type="string" cy:type="String"/>
|
|
4
|
+
<node id="1" label="A"><att name="name" value="A" type="string" cy:type="String"/><att name="score" value="0.5" type="real" cy:type="Double"/><att name="degree" value="2" type="integer" cy:type="Integer"/><graphics type="ELLIPSE" x="10" y="20" z="0" fill="#FF0000"/></node>
|
|
5
|
+
<node id="2" label="B"><att name="name" value="B" type="string" cy:type="String"/><att name="score" value="1.5" type="real" cy:type="Double"/><att name="degree" value="1" type="integer" cy:type="Integer"/><graphics type="ELLIPSE" x="30" y="40" z="0" fill="#00FF00"/></node>
|
|
6
|
+
<node id="3" label="C"><att name="name" value="C" type="string" cy:type="String"/><att name="degree" value="1" type="integer" cy:type="Integer"/><graphics type="RECTANGLE" x="50" y="0" z="0"/></node>
|
|
7
|
+
<edge id="4" label="A (pp) B" source="1" target="2" cy:directed="1"><att name="interaction" value="pp" type="string" cy:type="String"/></edge>
|
|
8
|
+
<edge id="5" label="A (pd) C" source="1" target="3" cy:directed="1"><att name="interaction" value="pd" type="string" cy:type="String"/></edge>
|
|
9
|
+
</graph>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
digraph handoffs {
|
|
2
|
+
label = "Who hands work to whom";
|
|
3
|
+
|
|
4
|
+
subgraph cluster_design {
|
|
5
|
+
label = "Design";
|
|
6
|
+
style = filled;
|
|
7
|
+
color = lightgrey;
|
|
8
|
+
ana; ben;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
subgraph cluster_build {
|
|
12
|
+
label = "Build";
|
|
13
|
+
cara; dev; eli;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
start -> ana;
|
|
17
|
+
ana -> ben -> cara;
|
|
18
|
+
cara -> dev -> eli;
|
|
19
|
+
eli -> ana [style = dashed, label = "feedback"];
|
|
20
|
+
eli -> release;
|
|
21
|
+
|
|
22
|
+
start [shape = Mdiamond];
|
|
23
|
+
release [shape = Msquare];
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
format-version: 1.2
|
|
2
|
+
ontology: vehicles
|
|
3
|
+
|
|
4
|
+
[Term]
|
|
5
|
+
id: VEH:0000001
|
|
6
|
+
name: vehicle
|
|
7
|
+
|
|
8
|
+
[Term]
|
|
9
|
+
id: VEH:0000002
|
|
10
|
+
name: road vehicle
|
|
11
|
+
is_a: VEH:0000001 ! vehicle
|
|
12
|
+
|
|
13
|
+
[Term]
|
|
14
|
+
id: VEH:0000003
|
|
15
|
+
name: car
|
|
16
|
+
is_a: VEH:0000002 ! road vehicle
|
|
17
|
+
|
|
18
|
+
[Term]
|
|
19
|
+
id: VEH:0000004
|
|
20
|
+
name: wheel
|
|
21
|
+
relationship: part_of VEH:0000002 ! road vehicle
|
|
22
|
+
|
|
23
|
+
[Typedef]
|
|
24
|
+
id: part_of
|
|
25
|
+
name: part of
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphty/graph-io",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.26",
|
|
4
|
+
"description": "Read and write 13 graph file formats (JSON, GraphML, GEXF, CSV, GML, DOT, Pajek, Neo4j CSV, XGMML, CX2, CX, OBO, Cytoscape sessions) as @graphty/graph-format snapshots",
|
|
5
5
|
"author": "Adam Powers <apowers@ato.ms>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/graph-io.js",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"dist/",
|
|
84
84
|
"!dist/*.tsbuildinfo",
|
|
85
85
|
"src/",
|
|
86
|
+
"docs/samples/",
|
|
86
87
|
"README.md",
|
|
87
88
|
"LICENSE"
|
|
88
89
|
],
|
|
@@ -118,9 +119,9 @@
|
|
|
118
119
|
"bugs": {
|
|
119
120
|
"url": "https://github.com/graphty-org/graphty-monorepo/issues"
|
|
120
121
|
},
|
|
121
|
-
"homepage": "https://
|
|
122
|
+
"homepage": "https://graphty.app/docs/graph-io/",
|
|
122
123
|
"dependencies": {
|
|
123
|
-
"@graphty/graph-format": "^1.3.
|
|
124
|
+
"@graphty/graph-format": "^1.3.6"
|
|
124
125
|
},
|
|
125
126
|
"peerDependencies": {
|
|
126
127
|
"@graphty/graph-format": "^1.0.0"
|
|
@@ -131,7 +132,9 @@
|
|
|
131
132
|
"eslint": "^9.29.0",
|
|
132
133
|
"fast-check": "^4.2.0",
|
|
133
134
|
"fast-xml-parser": "^5.11.1",
|
|
135
|
+
"prettier": "^3.4.2",
|
|
134
136
|
"tsx": "^4.20.3",
|
|
137
|
+
"typedoc": "^0.28.15",
|
|
135
138
|
"typescript": "^5.9.3",
|
|
136
139
|
"vite": "^7.0.5",
|
|
137
140
|
"vitest": "4.1.11"
|
|
@@ -150,6 +153,8 @@
|
|
|
150
153
|
"coverage": "vitest run --coverage",
|
|
151
154
|
"coverage:preview": "npx serve coverage -p ${PORT:?start it through servherd, which sets PORT}",
|
|
152
155
|
"benchmark": "tsx benchmarks/run.ts",
|
|
156
|
+
"docs:reference": "tsx scripts/docs-reference.ts",
|
|
157
|
+
"docs:api": "tsx scripts/docs-reference.ts --check && typedoc && node ../tools/sanitize-api-docs.js docs/api/generated",
|
|
153
158
|
"ready:commit": "npm run build:all && npm run lint && npm run typecheck:strict-consumer && npm run test:run"
|
|
154
159
|
}
|
|
155
160
|
}
|
package/src/children.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The children CSR over a containment column
|
|
2
|
+
* The children CSR over a containment column: containment
|
|
3
3
|
* (GEXF `pid` / `<parents>`, Cytoscape `parent`, DOT clusters, GraphML nested graphs) is a node
|
|
4
4
|
* column with the `parent` role (u32, refersTo node) or the `parents` role (list of u32) and never
|
|
5
5
|
* enters the CSR of the snapshot. Importers and exporters that need to walk containers top-down
|
|
@@ -16,10 +16,16 @@
|
|
|
16
16
|
|
|
17
17
|
import { type Column, type GraphSnapshot, INVALID_INDEX } from "@graphty/graph-format";
|
|
18
18
|
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* The role of the column a children CSR is built over.
|
|
21
|
+
* @category Plugin helpers
|
|
22
|
+
*/
|
|
20
23
|
export type ContainmentRole = "parent" | "parents";
|
|
21
24
|
|
|
22
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* How the CSR is built: from a role column of the snapshot (default `parent`, then `parents`) or an explicit column.
|
|
27
|
+
* @category Plugin helpers
|
|
28
|
+
*/
|
|
23
29
|
export interface ChildrenOptions {
|
|
24
30
|
/**
|
|
25
31
|
* The column to read: a role name (`parent` for the u32 single-parent column, `parents` for
|
|
@@ -30,7 +36,10 @@ export interface ChildrenOptions {
|
|
|
30
36
|
readonly column?: ContainmentRole | Column | "auto" | null | undefined;
|
|
31
37
|
}
|
|
32
38
|
|
|
33
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* One depth-first traversal of the containment forest.
|
|
41
|
+
* @category Plugin helpers
|
|
42
|
+
*/
|
|
34
43
|
export interface DepthFirstOrder {
|
|
35
44
|
/** Every node index exactly once: roots in index order, each followed by its descendants, cycle members last. */
|
|
36
45
|
readonly order: Uint32Array;
|
|
@@ -41,8 +50,9 @@ export interface DepthFirstOrder {
|
|
|
41
50
|
}
|
|
42
51
|
|
|
43
52
|
/**
|
|
44
|
-
* The children CSR of a snapshot's containment column
|
|
53
|
+
* The children CSR of a snapshot's containment column: the inverse
|
|
45
54
|
* of the parent relation as a compressed sparse row structure over node indices.
|
|
55
|
+
* @category Plugin helpers
|
|
46
56
|
*/
|
|
47
57
|
export class ChildrenCsr {
|
|
48
58
|
/** The number of nodes (the row count of the CSR). */
|
|
@@ -247,10 +257,11 @@ export class ChildrenCsr {
|
|
|
247
257
|
}
|
|
248
258
|
|
|
249
259
|
/**
|
|
250
|
-
* Build the children CSR of a snapshot
|
|
260
|
+
* Build the children CSR of a snapshot.
|
|
251
261
|
* @param snapshot - the snapshot
|
|
252
262
|
* @param options - which column to read; the `parent` role, then `parents`, by default
|
|
253
263
|
* @returns the CSR; empty (every node a root) when the snapshot has no containment column
|
|
264
|
+
* @category Plugin helpers
|
|
254
265
|
*/
|
|
255
266
|
export function childrenCsr(snapshot: GraphSnapshot, options: ChildrenOptions = {}): ChildrenCsr {
|
|
256
267
|
const column = resolveColumn(snapshot, options.column === undefined ? "auto" : options.column);
|
|
@@ -263,6 +274,7 @@ export function childrenCsr(snapshot: GraphSnapshot, options: ChildrenOptions =
|
|
|
263
274
|
* @param nodeCount - the node count the references index into
|
|
264
275
|
* @param column - a u32 `parent`-shaped column, a list-of-u32 `parents`-shaped column, or null for none
|
|
265
276
|
* @returns the CSR
|
|
277
|
+
* @category Plugin helpers
|
|
266
278
|
*/
|
|
267
279
|
export function childrenFromColumn(nodeCount: number, column: Column | null): ChildrenCsr {
|
|
268
280
|
const rowPtr = new Uint32Array(nodeCount + 1);
|