Skip to content

computeEntityImportance

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/technical-docs/search-index.ts

Per-entity importance 0..1 = blend of call-graph in-degree centrality (how many things reference it) and public-API-surface weight (its kind).

Signature

ts
function computeEntityImportance(entities: GraphEntity[], relationships: GraphRelationship[]): Map<string, number>

Parameters

NameType
entitiesGraphEntity[]
relationshipsGraphRelationship[]

Returns: Map<string, number>

Was this page helpful?

Download as PDF