Description Usage Arguments Value Examples
View source: R/generateSupplyNet.R
Generate a theorectical supply network composed of three types of vertices: producers, intermediaries, and distributors. Output graph is a Directed Acyclic Graph (DAG) in which every producers and intermediaries has >= 1 customer, and every intermediaries and distributors have a supplier.
1 | generateSupplyNet(P = 67, I = 18, D = 70, E = 228)
|
P |
numeric; number of producers (default: 67). |
I |
numeric; number of intermediaries (default: 18). |
D |
numeric; number of distributors (default: 70). |
E |
numeric; number of edges (default: 228). |
igraph object; a supply network.
1 2 | net = generateSupplyNet()
plot(net)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.