English
@eightkk/vue-weave / core / graphDegreeCentrality
Function: graphDegreeCentrality()
graphDegreeCentrality(
nodes,edges,options?):Map<string,number>
Defined in: src/core/graphAnalysis.ts:76
Degree per node ID, in input order. Every edge counts once, so parallel edges add up. A self-loop is one incoming and one outgoing edge: it adds 1 to 'in', 1 to 'out' and 2 to 'both'. Normalized values can exceed 1 when parallel edges or self-loops are present.
Parameters
nodes
readonly IdentifiedNode[]
edges
readonly GraphEdge<unknown>[]
options?
GraphDegreeCentralityOptions = {}
Returns
Map<string, number>