net_weighted: Creates a weighted network.

View source: R/tss_to_net.R

net_weightedR Documentation

Creates a weighted network.

Description

A link is created for each pair of nodes, except if the distance is maximum (1). In network science, stronger links are commonly represented by high values. For this reason, the link weights returned are 1 - D.

Usage

net_weighted(D, invert_dist_as_weight = TRUE)

Arguments

D

Distance matrix. All values must be between [0,1].

invert_dist_as_weight

Boolean, if weighted == TRUE, then the weights become 1 - distance. This is the default behavior since most network measures interpret higher weights as stronger connection.

Value

Fully connected network


ts2net documentation built on June 9, 2022, 9:06 a.m.