Skip to content
PACKAGES

graphBlueprintDiagnostics()

Diagnose structural issues in a normalized graph topology.

import { graphBlueprintDiagnostics } from "@graphrefly/ts/graph";
function graphBlueprintDiagnostics(topology: NormalizedGraphTopologySnapshot): GraphBlueprintDiagnostics
ParameterTypeDescription
topologyNormalizedGraphTopologySnapshotNormalized topology to inspect.

A diagnostics summary and any structural issues found.

import { graphBlueprintDiagnostics, normalizeTopology } from "@graphrefly/ts/graph";
graphBlueprintDiagnostics(normalizeTopology({
nodes: [{ id: "source", factory: "state", deps: [] }],
edges: [],
}));

packages/ts/src/graph/blueprint.ts