Learn R Programming

HospitalNetwork (version 0.9.4)

get_degree: Compute the degree of each nodes in the network

Description

Compute the degree of each nodes in the network

Usage

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

Value

a data.table of nodes degree

Arguments

graph

an igraph object

modes

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