The ids of vertices of which the degree will be calculated.
mode
Character string, <U+201C>out<U+201D> for out-degree, <U+201C>in<U+201D> for in-degree or <U+201C>total<U+201D> for the sum of the two.
For undirected graphs this argument is ignored. <U+201C>all<U+201D> is a synonym of <U+201C>total<U+201D>.
loops
Logical; whether the loop edges are also counted.
If the graph has a weight edge attribute, then this is used by default. Weights are used to calculate weighted shortest paths, so they are interpreted as distances.
normalized
Logical scalar, whether to normalize the degree.
If TRUE then the result is divided by n-1, where n is the number of vertices in the graph.
Value
A numeric vector of the same length as argument v.
See Also
degree for a complete description on this function