flow_network: Create a tidygraph from flows and remove spurious edges in...

Description Usage Arguments Value

View source: R/network.R

Description

Create a tidygraph from flows and remove spurious edges in the process.

Usage

1
2
3
4
5
6
flow_network(
  flows,
  spurious_if_below = c(rate_o = 0.1, rate_d = 0.1),
  label_subgraphs = TRUE,
  keep_levels = TRUE
)

Arguments

flows

Asymptotic od flows

spurious_if_below

Remove edges whose attributes are lower than the corresponding threshold.

label_subgraphs

Whether to label subgraphs as a result of removing spurious edges.

keep_levels

Whether nodes should keep the same factor levels as flows.

Value

[tbl_graph]


ppintosilva/anprflows documentation built on May 20, 2021, 3:25 p.m.