graphBlueprintDiagnostics()
Diagnose structural issues in a normalized graph topology.
Import
Section titled “Import”import { graphBlueprintDiagnostics } from "@graphrefly/ts/graph";Signature
Section titled “Signature”function graphBlueprintDiagnostics(topology: NormalizedGraphTopologySnapshot): GraphBlueprintDiagnosticsParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
topology | NormalizedGraphTopologySnapshot | Normalized topology to inspect. |
Returns
Section titled “Returns”A diagnostics summary and any structural issues found.
Example
Section titled “Example”import { graphBlueprintDiagnostics, normalizeTopology } from "@graphrefly/ts/graph";
graphBlueprintDiagnostics(normalizeTopology({ nodes: [{ id: "source", factory: "state", deps: [] }], edges: [],}));Source
Section titled “Source”packages/ts/src/graph/blueprint.ts