The ids of vertices of which the degree will be calculated.
mode
Character string, out for out-degree, in for
in-degree or total for the sum of the two. For undirected
graphs this argument is ignored.
loops
Logical; whether the loop edges are also counted.
cumulative
Logical; whether the cumulative degree distribution
is to be calculated.
...
Additional arguments to pass to degree,
eg. mode is useful but also v and loops make
sense.
Value
For degree a numeric vector of the same length as argument
v.
For degree.distribution a numeric vector of the same length as
the maximum degree plus one. The first element is the relative
frequency zero degree vertices, the second vertices with degree one,
etc.