Interface: CorpusBridgeEdge
@kortexya/reasoninglayer / Corpus / CorpusBridgeEdge
Interface: CorpusBridgeEdge
Defined in: src/types/corpus.ts:84
A weighted edge between two documents.
Remarks
weight is the total number of shared entities before per-edge truncation,
so it can exceed sharedEntities.length when maxSharedEntitiesPerEdge bites.
Properties
a
a:
string
Defined in: src/types/corpus.ts:86
Document id of the first endpoint.
b
b:
string
Defined in: src/types/corpus.ts:88
Document id of the second endpoint.
sharedEntities
sharedEntities:
CorpusSharedEntity[]
Defined in: src/types/corpus.ts:92
The shared entities, most-mentioned first, truncated per edge.
weight
weight:
number
Defined in: src/types/corpus.ts:90
Total number of shared entities (before per-edge truncation).