Description Usage Arguments Value Examples
Choose a random short supply-chain edge going directly from producers to distributors, delete it, and replace it by a path of two edges length passing through an intermediary chosen randomly.
1 |
g |
an igraph object. |
an igraph object.
1 2 3 4 5 6 | ## Turn all short SC into long SC
library(igraph)
g = generateSupplyNet(E=200)
while (length(E(g)[E(g)$type=="PD"]))
g = lengthenShortEdge(g)
ecount(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.