API Reference
validateNoIslands()
Detect nodes with zero deps and zero dependents in a describe snapshot.
Import
import { validateNoIslands } from "@graphrefly/ts/graph";
Signature
function validateNoIslands(snapshot: DescribeSnapshot): ValidateNoIslandsResult
Parameters
| Parameter | Type | Description |
|---|---|---|
snapshot | DescribeSnapshot | snapshot value used by the helper. |
Returns
Validation diagnostics or the validated projection.
Example
import { validateNoIslands } from "@graphrefly/ts/graph";
Source
packages/ts/src/graph/diagnostics.ts