Calculates average upstream/downstream or combined distance between each couple of reaches
set_B_directionality(
graph,
dir_distance_type = "symmetric",
field_B = "length"
)an object of class 'igraph' with the upstream/downstream/total distances stored as edges attributes.
an object of class igraph. Can be both directed or undirected.
how directionality in B_ij calculations is dealt with:
"symmetric" (i.e. undirected graph) or "asymmetric" (i.e. directed graph). See details.
the 'graph' edge attribute to be used to calculate the distance. Default is "length".