matrix with 2 columns, each row representing one edge, and each
column one of the vertices in the edge. Column 1 contains the
vertex with lower index.
v
set of vertices.
Value
vector
length(v).
Details
Calculates the degree of each vertex in v. If v=NULL, it returns
the degree of all vertices in edges. If v contains a vertex not in
edges, the corresponding value is NA.