Compute the degree of each nodes in the network

get_degree(graph, modes = c("in", "out", "total"))

Arguments

graph

an igraph object

modes

the type of degree: "in", "out", "total"

Value

a data.table of nodes degree