GraphNeighborhood

data class GraphNeighborhood(val entityId: String, val neighbours: List<RelatedEntity>)

The entity-relationship neighbourhood around a queried entity.

A neighbourhood is derived purely from proposition data: when a proposition mentions two resolved entities, that proposition IS the edge between them. The result is therefore store-agnostic — no graph backend is required to compute it.

Constructors

Link copied to clipboard
constructor(entityId: String, neighbours: List<RelatedEntity>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the entity the neighbourhood was computed for (opaque string identifier)

Link copied to clipboard

the related entities reachable from entityId, each carrying its hop distance and the propositions on the edge that directly connects it to its predecessor on the discovery path