Description Usage Arguments Author(s) See Also Examples
Get either the degree distribution (as a count or as a density) or the strength distribution for a graph.
1 2 3 4 5 6 7 | strength_distribution(
graph,
cumulative = FALSE,
signed = TRUE,
which.sign = "star",
count = FALSE
)
|
graph |
A network as an igraph object or connectivity matrix. |
cumulative |
Should the cumulative sum be returned or the density? Defaults to cumulative=FALSE |
signed |
If TRUE (the default) uses the strength_signed function to calculate the distribution. |
which.sign |
If "star" returns the weighted strength* metric, if "pos" returns the distribution of the positive connections, and if "neg" returns the distribution of the negative connections. |
count |
If the weights are binary can be set to count=TRUE to get the counts of each degree instead of the probability densities. |
Brandon Vaughan
1 2 3 4 5 6 | #' **## Not run:**
# If you want to examine the distributions of positive and negative connections
pos = strength_distribution(graph, which.sign="pos")
neg = strength_distribution(graph, which.sign="neg")
## End(**Not run**)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.