Description Usage Arguments Examples
View source: R/measurment_functions_NODES.R
This function will calculate the skewness of edge weights from nodes in a graph.
1 | edge.weight.skewness(graph1, type = "all")
|
graph1 |
An igraph object. |
type |
The type of edges to pull from the graph: 'in', 'out', or 'all'. In non-directed graphs this is ignored. |
1 2 3 4 5 6 7 8 | library(igraph)
#Random graph
graph1 <- random.graph.game(n=10, p.or.m = 0.3)
E(graph1)$weight <- c(1,2,3,4,5,6,7,7,7,7)
#skewness
edge.weight.skewness(graph1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.