node_degree: Calculate node degree

Description Usage Arguments Value Examples

View source: R/node_degree.R

Description

The function calculates the node degree of a network

Usage

1

Arguments

net

numeric matrix

Value

node_degree numeric array

Examples

1
2
3
4
5
6
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)
 

EGAD documentation built on Nov. 8, 2020, 8:31 p.m.