A function to flatten a multilayer network into a single-layer network, see Dickison et al. 2016, p.39
1 |
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". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.