GraphReFlyTS

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

ParameterTypeDescription
topologyNormalizedGraphTopologySnapshotNormalized 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