avgSPL: Average Supply-Path Length (SPL)

Description Usage Arguments Value Examples

View source: R/indices.R

Description

A Supply-Path is a synonym of Supply Chain. This index is equal to the average of the shortest path length from producers to distributors.

Usage

1
avgSPL(g)

Arguments

g

an igraph object; the supply network.

Value

a positive numeric.

Examples

1
2
3
library(igraph)
g = generateSupplyNet()
avgSPL(g)

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