| dyad_census | R Documentation |
Classifies every dyad (unordered pair of nodes) in a directed network into
one of three mutually exclusive states: mutual (M, edges in both
directions), asymmetric (A, an edge in exactly one direction), or
null (N, no edge between the pair). The dyad census is the
dyad-level companion to triad_census and underlies dyad-based
reciprocity.
dyad_census(x, directed = NULL, ...)
x |
Network input: matrix, igraph, network, cograph_network, or tna object. |
directed |
Logical or NULL. If NULL (default), auto-detect from matrix symmetry. Set TRUE to force directed, FALSE to force undirected. |
... |
Currently unused; |
For undirected networks every present edge is counted as a mutual
dyad and the asymmetric count is always zero, so the census reduces to a
present/absent split. The total number of dyads is n(n-1)/2 regardless
of direction.
A tidy data.frame of class "cograph_dyad_census" with one row
per dyad type and columns:
Character: "mutual", "asymmetric", or
"null".
Integer: number of dyads of that type.
Numeric: count divided by the total number of dyads
(n(n-1)/2).
The dyad-based reciprocity 2M / (2M + A) is attached as the
"reciprocity" attribute.
Wasserman, S., & Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge University Press.
triad_census, edge_reciprocity,
network_summary
# Directed network with a mix of mutual and asymmetric ties
adj <- matrix(c(
0, 1, 1, 0,
1, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 0
), 4, 4, byrow = TRUE)
rownames(adj) <- colnames(adj) <- LETTERS[1:4]
cograph::dyad_census(adj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.