merged_with_edgecounts: Merged With Edgecounts

View source: R/RWR_network_aggregation.R

merged_with_edgecountsR Documentation

Merged With Edgecounts

Description

Merge down all layers and aggregate multi-edges into one edge where edge weight is the number of layers in which the two nodes are connected.

Usage

merged_with_edgecounts(mpo, inv = FALSE, verbose = FALSE)

Arguments

mpo

A multiplex network object. Edge weights are the sum of the weights of the edges in the multiplex network object.

inv

Set the edge weight to the reciprocal of the sum of the weights.

verbose

Print progress to console.

Value

An igraph network object.


dkainer/RWRtoolkit documentation built on Jan. 11, 2025, 3:26 a.m.