Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / WayfindingGraph

Interface: WayfindingGraph

Defined in: packages/wayfinding/src/types.ts:177

Properties

adjacency

adjacency: Map`<string, WayfindingEdge[]>`

Defined in: packages/wayfinding/src/types.ts:180

Adjacency list: nodeId → outgoing edges


diagnostics?

optional diagnostics?: object

Defined in: packages/wayfinding/src/types.ts:188

Diagnostics counters populated by buildGraph so callers/tooling can detect silently-dropped data instead of only observing a disconnected graph downstream (issue #578). Optional because graphs constructed by hand (e.g. in tests) for astar/path-network exercises don't go through buildGraph and have nothing to report.

skippedOpenings

skippedOpenings: number

Number of Opening features that could not be resolved to two distinct units on the same floor (via midpoint±normal PIP or the endpoint-PIP fallback) and were therefore skipped — no edge was created for them.


nodes

nodes: Map`<string, WayfindingNode>`

Defined in: packages/wayfinding/src/types.ts:178

Released under commercial licensing.