reachability: Supply network reachability

Description Usage Arguments Value Examples

View source: R/efficiency.R

Description

Reachability of a supply network measures the probability that a source node (a producer) is connected to a target node through a path It is equal to the number of supply paths from the sources set S to sink set T, divided by the overall number of possible paths (|S| * |T|).

Usage

1

Arguments

g

igraph object.

Value

A numeric between 0 and 1.

Examples

1
2
3
4
5
6
## In a tree, reachability is equal to 1
library(igraph)
g = make_tree(10)
reachability(g)
## Theoretical 1 hub-centralized supply network
#TODO

MiloMonnier/supplynet documentation built on Feb. 16, 2021, 8:03 p.m.