{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/graph.segment.converter.ts",
          "name": "targetOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.segment.converter.ts",
            "label": "core/converters/graph.segment.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-segment-converter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/converters/graph.segment.converter.ts",
          "name": "chunksOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.segment.converter.ts",
            "label": "core/converters/graph.segment.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-segment-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.segment.converter.ts",
          "name": "chunksOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.segment.converter.ts",
            "label": "core/converters/graph.segment.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-segment-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.segment.converter.ts",
          "name": "chunksOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.segment.converter.ts",
            "label": "core/converters/graph.segment.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-segment-converter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "add",
      "signature": "const add = function add(from: string, relation: string, to: string): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/graph.segment.converter.ts",
          "name": "add",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.segment.converter.ts",
            "label": "core/converters/graph.segment.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-segment-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "targetOf",
      "signature": "const targetOf = function targetOf(node: GraphNode): ChunkTarget {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/graph.segment.converter.ts",
          "name": "add",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.segment.converter.ts",
            "label": "core/converters/graph.segment.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-segment-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.segment.converter.ts",
          "name": "add",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.segment.converter.ts",
            "label": "core/converters/graph.segment.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-segment-converter-ts"
          }
        },
        {
          "file": "core/converters/graph.segment.converter.ts",
          "name": "add",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.segment.converter.ts",
            "label": "core/converters/graph.segment.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-segment-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "chunksOf",
      "signature": "export const chunksOf = function chunksOf(graph: Graph, rules: ChunkRules): ReadonlyMap<string, GraphChunk> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "containersOf",
      "signature": "const containersOf = function containersOf(graph: Graph, rules: ChunkRules): ReadonlyMap<string, string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "nodes",
      "signature": "const nodes = new Map(graph.nodes.map((node) => [node.ref, node]));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "containers",
      "signature": "const containers = containersOf(graph, rules);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "relations",
      "signature": "const relations = new Map<string, Map<string, ChunkTarget[]>>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "target",
      "signature": "const target = nodes.get(to);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "held",
      "signature": "const held = relations.get(from) ?? new Map<string, ChunkTarget[]>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "reverse",
      "signature": "const reverse = rules.pairs.find((pair) => pair.forward === edge.relation)?.reverse;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "container",
      "signature": "const container = containers.get(edge.to);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "chunks",
      "signature": "const chunks = new Map<string, Record<string, ChunkNode>>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "node",
      "signature": "const node = nodes.get(ref);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "key",
      "signature": "const key = rules.keyOf(ref);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "chunk",
      "signature": "const chunk = chunks.get(key) ?? {};"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "graph.segment.converter.ts",
  "path": "core/converters/graph.segment.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-graph-segment-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#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": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "graph",
    "variant": "segment"
  },
  "stats": {
    "bytes": 2422,
    "callable": 4,
    "definitions": 15,
    "edges": 4,
    "exported": 13,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "leaf": 1,
      "entry": 1,
      "isolated": 12
    },
    "lines": {
      "blank": 3,
      "code": 51,
      "total": 54
    }
  },
  "summary": "51 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-site-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.site.converter.ts",
      "label": "core/converters/graph.site.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.site.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-graph-site-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-ontology-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.ontology.converter.ts",
      "label": "core/converters/graph.ontology.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.ontology.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-graph-ontology-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"
  }
}
