View source: R/cluster-metrics.R
| layer_degree_correlation | R Documentation |
Measures the consistency of hubs across layers as the Pearson correlation of node degrees between layers.
layer_degree_correlation(layers, mode = c("total", "in", "out"))
ldegcor(layers, mode = c("total", "in", "out"))
layers |
List of adjacency matrices of the same dimensions |
mode |
Degree type: "total" (default, row plus column sums), "in" (column sums) or "out" (row sums). The sums use the edge weights, so on a weighted layer the degree is the node strength. |
An L x L Pearson correlation matrix of the layer degree sequences,
with the layer names (or "Layer1", "Layer2", ...) as
dimnames.
layers <- list(forward = regulation_net, backward = t(regulation_net))
layer_degree_correlation(layers, mode = "total")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.