Description Usage Arguments Value Examples
First, different degrees (deg, indeg, outdeg) are computed and attached as vertices attributes. Then, given these degrees, vertice type (P, I, D) is deducted. Edges type is equal to the concatenation of ends vertices types.
1 |
g |
an igraph object; the supply network. |
an igraph object.
1 2 3 4 5 | library(igraph)
g = make_tree(10)
g = updateGraphAttributes(g)
V(g)$type
E(g)$type
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.