View source: R/structural_equivalence.R
structural_equivalence | R Documentation |
Calculate structural equivalence
structural_equivalence(g, weight = NULL, digits = 3, suppressWarnings = TRUE)
g |
graph of class |
weight |
Either |
digits |
number of decimals to use |
suppressWarnings |
logical, whether or not any warnings should be returned |
Calculate structural equivalence based on correlations. The function, of course, disregards the diagonal.
Vertices are also perfectly structurally equivalent with themselves.
If requested, an edge attribute can be taken into account
through the weight
argument. By default, no weights
are used.
The value varies between [-1, 1], with -1 denoting maximally possible distance between two vertices and +1 denoting exact structural equivalence.
matrix of size n*n, with n equal to the number of vertices in the graph
data("Jemaah_Islamiyah", package = "DF21") structural_equivalence(Jemaah_Islamiyah) structural_equivalence(Jemaah_Islamiyah, weight = "weight")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.