powered by
Convenience wrapper around edge_centrality that returns only the triangle count per edge, sorted descending.
edge_centrality
simmelian_strength(x, top = NULL, directed = NULL, digits = NULL, ...)
A data frame sorted by triangles (descending) with columns: from, to, weight (if weighted), triangles.
triangles
from
to
weight
Network input: matrix, igraph, network, cograph_network, or tna object.
Integer or NULL. Return only the top N edges. Default NULL.
Logical or NULL. Default NULL (auto-detect).
Integer or NULL. Round numeric columns. Default NULL.
Additional arguments passed to edge_centrality.
edge_centrality, neighborhood_overlap
neighborhood_overlap
k4 <- matrix(1, 4, 4); diag(k4) <- 0 rownames(k4) <- colnames(k4) <- c("A", "B", "C", "D") cograph::simmelian_strength(k4)
Run the code above in your browser using DataLab