Skip to content
PACKAGES

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 { profileSummary } from "@graphrefly/ts/patterns";
function profileSummary(
graph: Graph,
opts: { limit?: number } = {},
): ProfileSummary
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
opts{ limit?: number }Options that configure the helper.

A ProfileSummary value.

import { profileSummary } from "@graphrefly/ts/patterns";

packages/ts/src/patterns/inspection.ts