Learn R Programming

EGAD (version 1.0.3)

node_degree: Calculate node degree

Description

The function calculates the node degree of a network

Usage

node_degree(net)

Arguments

net
numeric matrix

Value

node_degree numeric array

Examples

Run this code
net <- cor( matrix(rnorm(1000), ncol=10)) 
n <- 10
net <- matrix(rank(net, na.last = 'keep', ties.method = 'average'), nrow = n, ncol = n)
net <- net/max(net, na.rm=TRUE)
nd <- node_degree(net)
 

Run the code above in your browser using DataLab