@graphty/graphty-element / index / Neighbor
Interface: Neighbor ​
Defined in: graphty-element/src/session/types.ts:403
One neighbor of a node.
Properties ​
edgeCount ​
readonlyedgeCount:number
Defined in: graphty-element/src/session/types.ts:417
How many edges join the two along the direction followed, each counted once.
excludedBy? ​
readonlyoptionalexcludedBy?:object
Defined in: graphty-element/src/session/types.ts:423
Present when the neighbor is in the data but the session's visibility filter hides it. "filter" covers visibility.set() and visibility.setWindow() alike: the time window is part of the one visibility filter. Open: more kinds may be added.
kind ​
readonlykind:"filter"
name ​
readonlyname:string
Defined in: graphty-element/src/session/types.ts:410
The value at data.knownFields.nodeLabelPath, as text, else String(node.id). Untrusted text from the data: render it as text, never as markup.
node ​
readonlynode:NodeRecord
Defined in: graphty-element/src/session/types.ts:405
The neighbor's record, deep-frozen.
weight ​
readonlyweight:number
Defined in: graphty-element/src/session/types.ts:415
The edges' combined weight. When NeighborPage.measuredBy is null the page counts edges, and this equals Neighbor.edgeCount.