graph.strength: Strength or weighted vertex degree

View source: R/centrality.R

graph.strengthR Documentation

Strength or weighted vertex degree

Description

[Deprecated]

graph.strength() was renamed to strength() to create a more consistent API.

Usage

graph.strength(
  graph,
  vids = V(graph),
  mode = c("all", "out", "in", "total"),
  loops = TRUE,
  weights = NULL
)

Arguments

graph

The input graph.

vids

The vertices for which the strength will be calculated.

mode

Character string, “out” for out-degree, “in” for in-degree or “all” for the sum of the two. For undirected graphs this argument is ignored.

loops

Logical; whether the loop edges are also counted.

weights

Weight vector. If the graph has a weight edge attribute, then this is used by default. If the graph does not have a weight edge attribute and this argument is NULL, then a degree() is called. If this is NA, then no edge weights are used (even if the graph has a weight edge attribute).


igraph documentation built on Oct. 20, 2024, 1:06 a.m.