profileSummary()
Summarize an opt-in Graph.profile() snapshot while keeping describe() as the source of node cardinality. No counters are stored on nodes (R-profile).
Import
Section titled “Import”import { profileSummary } from "@graphrefly/ts/patterns";Signature
Section titled “Signature”function profileSummary( graph: Graph, opts: { limit?: number } = {},): ProfileSummaryParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | { limit?: number } | Options that configure the helper. |
Returns
Section titled “Returns”A ProfileSummary value.
Example
Section titled “Example”import { profileSummary } from "@graphrefly/ts/patterns";Source
Section titled “Source”packages/ts/src/patterns/inspection.ts