Skip to content

@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? ​

readonly optional mode?: "in" | "out" | "total"

Defined in: indexed/degree.ts:6

On a directed snapshot, which neighbours to count; ignored when undirected. Default "total".


normalized? ​

readonly optional normalized?: boolean

Defined in: indexed/degree.ts:8

Divide by n - 1, the most neighbours a node can have. Default false.