{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/graph.converter.ts",
          "name": "edgeIndexOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "edgeIndexOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "edgeIndexOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "edgeIndexOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "indexKey",
      "signature": "const indexKey = function indexKey(ref: string, relation: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/graph.converter.ts",
          "name": "edgeIndexOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "edgeIndexOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "add",
      "signature": "const add = function add(into: Map<string, EdgeRef[]>, key: string, ref: string): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/graph.converter.ts",
          "name": "mergeGraphs",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 103,
      "name": "edgeKey",
      "signature": "const edgeKey = function edgeKey(edge: GraphEdge): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/graph.converter.ts",
          "name": "mergeGraphs",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 107,
      "name": "isDuplicate",
      "signature": "const isDuplicate = function isDuplicate(kept: GraphNode, held: GraphNode): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/coordinators/graph.coordinator.ts",
          "name": "buildGraph",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-graph-coordinator-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/graph.coordinator.ts",
            "label": "core/coordinators/graph.coordinator.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/graph.coordinator.ts.md",
            "ref": "anatomy:file-build-scripts-core-coordinators-graph-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 133,
      "name": "danglingEdges",
      "signature": "export const danglingEdges = function danglingEdges(graph: Graph): readonly GraphEdge[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/graph.converter.ts",
          "name": "add",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "add",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "indexKey",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "indexKey",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "indexKey",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "indexKey",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "edgeIndexOf",
      "signature": "export const edgeIndexOf = function edgeIndexOf(graph: Graph): EdgeIndex {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/graph.converter.ts",
          "name": "edgeKey",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.converter.ts",
          "name": "isDuplicate",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.converter.ts",
            "label": "core/converters/graph.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 111,
      "name": "mergeGraphs",
      "signature": "export const mergeGraphs = function mergeGraphs(parts: readonly Graph[]): Merged {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/catalog.strings.ts",
          "name": "noReverse",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-configuration-strings-catalog-strings-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/configuration/strings/catalog.strings.ts",
            "label": "configuration/strings/catalog.strings.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/configuration/strings/catalog.strings.ts.md",
            "ref": "anatomy:file-build-scripts-configuration-strings-catalog-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "inboundRelations",
      "signature": "export const inboundRelations = function inboundRelations("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "reverses",
      "signature": "const reverses = new Map(pairs.map((pair) => [pair.forward, pair.reverse]));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "inbound",
      "signature": "const inbound = new Map<string, Map<string, Map<string, string>>>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "reverse",
      "signature": "const reverse = reverses.get(edge.relation);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "outboundRelations",
      "signature": "export const outboundRelations = function outboundRelations("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "outbound",
      "signature": "const outbound = new Map<string, Map<string, Map<string, string>>>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "byRelation",
      "signature": "const byRelation = outbound.get(edge.from) ?? new Map<string, Map<string, string>>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "targets",
      "signature": "const targets = byRelation.get(edge.relation) ?? new Map<string, string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "titles",
      "signature": "const titles = new Map(graph.nodes.map((held) => [held.ref, held.title]));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "outgoing",
      "signature": "const outgoing = new Map<string, EdgeRef[]>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "incoming",
      "signature": "const incoming = new Map<string, EdgeRef[]>();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "groundingSources",
      "signature": "export const groundingSources = function groundingSources("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "sharingHref",
      "signature": "const sharingHref = new Map<string, string[]>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 93,
      "name": "href",
      "signature": "const href = hrefOf(ref);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 94,
      "name": "aliases",
      "signature": "const aliases = href === null ? [] : (sharingHref.get(href) ?? []).filter((alias) => alias !== ref);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 95,
      "name": "held",
      "signature": "const held = [ref, ...aliases, ...edges.outgoing(ref, CONTAINS_RELATION).map((edge) => edge.ref ?? \"\")];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 96,
      "name": "sources",
      "signature": "const sources = new Map("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 112,
      "name": "nodes",
      "signature": "const nodes = new Map<string, GraphNode>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 113,
      "name": "edges",
      "signature": "const edges = new Map<string, GraphEdge>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 114,
      "name": "duplicates",
      "signature": "const duplicates: (readonly [GraphNode, GraphNode])[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 117,
      "name": "first",
      "signature": "const first = nodes.get(held.ref);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 134,
      "name": "refs",
      "signature": "const refs = new Set(graph.nodes.map((held) => held.ref));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "graph.converter.ts",
  "path": "core/converters/graph.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-graph-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-configuration-strings-catalog-strings-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/configuration/strings/catalog.strings.ts",
          "label": "configuration/strings/catalog.strings.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/configuration/strings/catalog.strings.ts.md",
          "ref": "anatomy:file-build-scripts-configuration-strings-catalog-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-graph-coordinator-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/graph.coordinator.ts",
          "label": "core/coordinators/graph.coordinator.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/graph.coordinator.ts.md",
          "ref": "anatomy:file-build-scripts-core-coordinators-graph-coordinator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-configuration-strings.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-coordinators",
          "label": "core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-coordinators.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-coordinators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "graph",
    "variant": null
  },
  "stats": {
    "bytes": 5922,
    "callable": 10,
    "definitions": 29,
    "edges": 9,
    "exported": 26,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 5,
      "entry": 3,
      "isolated": 21
    },
    "lines": {
      "blank": 9,
      "code": 127,
      "total": 136
    }
  },
  "summary": "127 lines of code and 29 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/graph.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-link-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.link.converter.ts",
      "label": "core/converters/graph.link.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.link.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-graph-link-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-concern-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.concern.converter.ts",
      "label": "core/converters/graph.concern.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.concern.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-graph-concern-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/build-scripts/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/build-scripts/core/converters.md",
    "ref": "api:source/build-scripts/core/converters"
  }
}
