flatten: Flatten a multilayer network

Description Usage Arguments

View source: R/flatten.R

Description

A function to flatten a multilayer network into a single-layer network, see Dickison et al. 2016, p.39

Usage

1
flatten(graph, weighted = FALSE)

Arguments

graph

A graph of the tbl-graph class

weighted

should the flattening take edge weights into account (TRUE/FALSE)? Defaults to unweighted edges. Note that weights must be stored in an edge variable named "weight".


AHWA-Lab-Frankfurt/dimensional documentation built on Dec. 17, 2021, 6:41 a.m.