View source: R/set_B_directionality.R
set_B_directionality | R Documentation |
Calculates average upstream/downstream or combined distance between each couple of reaches
set_B_directionality(
graph,
dir_distance_type = "symmetric",
field_B = "length"
)
graph |
an object of class igraph. Can be both directed or undirected. |
dir_distance_type |
how directionality in B_ij calculations is dealt with:
|
field_B |
the 'graph' edge attribute to be used to calculate the distance. Default is |
an object of class 'igraph' with the upstream/downstream/total distances stored as edges attributes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.