{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/plugins/diagram.invocation.plugin.ts",
          "name": "scopeOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-diagram-invocation-plugin-ts",
            "json": "https://banes-lab.com/json/source/docs/core/plugins/diagram.invocation.plugin.ts",
            "label": "core/plugins/diagram.invocation.plugin.ts",
            "markdown": "https://banes-lab.com/source/docs/core/plugins/diagram.invocation.plugin.ts.md",
            "ref": "anatomy:file-docs-core-plugins-diagram-invocation-plugin-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "adjacencyOf",
      "signature": "export const adjacencyOf = function adjacencyOf(graph: CodeGraph): Map<string, string[]> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 3,
      "name": "byId",
      "signature": "const byId = function byId(left: string, right: string): number {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "adjacency",
      "signature": "const adjacency = new Map<string, string[]>();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "reachableFrom",
      "signature": "export const reachableFrom = function reachableFrom(root: string, adjacency: ReadonlyMap<string, string[]>): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "order",
      "signature": "const order: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "visited",
      "signature": "const visited = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "stack",
      "signature": "const stack = [root];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "id",
      "signature": "let id = stack.pop();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "incidentKeptEdges",
      "signature": "const incidentKeptEdges = function incidentKeptEdges("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "selectWithinEdgeBudget",
      "signature": "export const selectWithinEdgeBudget = function selectWithinEdgeBudget("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "kept",
      "signature": "const kept = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "edgeCount",
      "signature": "let edgeCount = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "added",
      "signature": "const added = incidentKeptEdges(id, edges, kept);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "rootIds",
      "signature": "export const rootIds = function rootIds(graph: CodeGraph): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "roots",
      "signature": "const roots = graph.nodes"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "[first]",
      "signature": "const [first] = graph.nodes.toSorted((left, right) => byId(left.id, right.id));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-analyzers-invocation-analyzer-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "invocation.analyzer.ts",
  "path": "core/analyzers/invocation.analyzer.ts",
  "ref": "anatomy:file-docs-core-analyzers-invocation-analyzer-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-analyzers.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-analyzers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-diagram-invocation-plugin-ts",
          "json": "https://banes-lab.com/json/source/docs/core/plugins/diagram.invocation.plugin.ts",
          "label": "core/plugins/diagram.invocation.plugin.ts",
          "markdown": "https://banes-lab.com/source/docs/core/plugins/diagram.invocation.plugin.ts.md",
          "ref": "anatomy:file-docs-core-plugins-diagram-invocation-plugin-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-plugins",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-plugins",
          "label": "core/plugins",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-plugins.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-plugins"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "analyzer",
    "subject": "invocation",
    "variant": null
  },
  "stats": {
    "bytes": 2142,
    "callable": 6,
    "definitions": 16,
    "edges": 0,
    "exported": 14,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "isolated": 15
    },
    "lines": {
      "blank": 6,
      "code": 62,
      "total": 68
    }
  },
  "summary": "62 lines of code and 16 definitions.",
  "text": "https://banes-lab.com/source/docs/core/analyzers/invocation.analyzer.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-analyzers-location-analyzer-ts",
      "json": "https://banes-lab.com/json/source/docs/core/analyzers/location.analyzer.ts",
      "label": "core/analyzers/location.analyzer.ts",
      "markdown": "https://banes-lab.com/source/docs/core/analyzers/location.analyzer.ts.md",
      "ref": "anatomy:file-docs-core-analyzers-location-analyzer-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-analyzers-graph-analyzer-ts",
      "json": "https://banes-lab.com/json/source/docs/core/analyzers/graph.analyzer.ts",
      "label": "core/analyzers/graph.analyzer.ts",
      "markdown": "https://banes-lab.com/source/docs/core/analyzers/graph.analyzer.ts.md",
      "ref": "anatomy:file-docs-core-analyzers-graph-analyzer-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/analyzers",
    "label": "core/analyzers",
    "markdown": "https://banes-lab.com/api/source/docs/core/analyzers.md",
    "ref": "api:source/docs/core/analyzers"
  }
}
