fn_weighted_degree: Function to calculate centrality scores Calculation of...

View source: R/fn_spongeffects_utility.R

fn_weighted_degreeR Documentation

Function to calculate centrality scores Calculation of weighted degree scores based on Opsahl et al. (2010) Hyperparameter to tune: Alpha = 0 –> degree centrality as defined in Freeman, 1978 (number of edges).

Description

Function to calculate centrality scores Calculation of weighted degree scores based on Opsahl et al. (2010) Hyperparameter to tune: Alpha = 0 –> degree centrality as defined in Freeman, 1978 (number of edges).

Usage

fn_weighted_degree(network, undirected = T, Alpha = 1)

Arguments

network

Network formatted as a dataframe with three columns containing respectively node1, node2 and weights

undirected

directionality of the network (default: T)

Alpha

degree centrality as defined in Barrat et al., 2004 (default: 1)

Value

Dataframe containing information about nodes and their weighted centrality measure


mlist/SPONGE documentation built on Feb. 12, 2023, 1:22 a.m.