# Function weightedDegree

- weightedDegree(
  nodeIds: readonly string[],
  edges: readonly WeightedEdge[],
  ): Map<string, number>

  Weighted-degree centrality: sum of incident edge weights per node.

  #### Parameters

  - nodeIds: readonly string[]

    Node universe (so isolates return 0 rather than be omitted).

  - edges: readonly WeightedEdge[]

    Weighted edges.

  #### Returns Map<string, number>

  Map from node id → summed incident weight.

  - Defined in utils/graphAlgorithms.ts:127