View source: R/fn_spongeffects_utility.R
fn_weighted_degree | R 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).
fn_weighted_degree(network, undirected = T, Alpha = 1)
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) |
Dataframe containing information about nodes and their weighted centrality measure
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.