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