@graphty/algorithms / index / DegreeCentralityOptions
Interface: DegreeCentralityOptions ​
Defined in: indexed/degree.ts:4
Options of the index-based degree centrality, matching the legacy degreeCentrality.
Properties ​
mode? ​
readonlyoptionalmode?:"in"|"out"|"total"
Defined in: indexed/degree.ts:6
On a directed snapshot, which neighbours to count; ignored when undirected. Default "total".
normalized? ​
readonlyoptionalnormalized?:boolean
Defined in: indexed/degree.ts:8
Divide by n - 1, the most neighbours a node can have. Default false.