Description Usage Arguments Value Author(s) Examples
View source: R/structural.properties.R
The degree of a vertex is its most basic structural property, the number of its adjacent edges.
1 2 3 4 5 6 7 8 9 
graph 
The graph to analyze. 
v 
The ids of vertices of which the degree will be calculated. 
mode 
Character string, “out” for outdegree, “in” for indegree or “total” for the sum of the two. For undirected graphs this argument is ignored. “all” is a synonym of “total”. 
loops 
Logical; whether the loop edges are also counted. 
normalized 
Logical scalar, whether to normalize the degree. If

cumulative 
Logical; whether the cumulative degree distribution is to be calculated. 
... 
Additional arguments to pass to 
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.
Gabor Csardi csardi.gabor@gmail.com
1 2 3 4  g < make_ring(10)
degree(g)
g2 < sample_gnp(1000, 10/1000)
degree_distribution(g2)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.