Description Usage Arguments Value Examples
Relative in- or out-degree of a vertex measures the balance between its number of incoming and outgoing edges.
1  | relativeDegree(g, vs = V(g), mode = c("in", "out"))
 | 
g | 
 igraph object.  | 
vs | 
 igraph.vs; vertices sequence of which the local index will be calculated (default: all vertices).  | 
mode | 
 either 'in' our 'out': the relative degree mode (default: 'in').  | 
A numeric vector of the same length than vertices sequence vs.
1 2 3 4  | library(igraph)
set.seed(123)
g = erdos.renyi.game(10, 20, 'gnm', directed=TRUE)
relativeDegree(g)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.