Perform a dyad census
count_dyads(x, echo = TRUE)
a data.frame
Perform a dyad census on the network data. As input, x
can be
any of igraph
, network
, or matrix
.
Mutual
represents the number of reciprocated dyads
Asymmetric
represents the number of unreciprocated dyads. This is
always 0 for undirected graphs.
Null
represents the number of dyads without a relation between the vertices
The output is invisibly returned and (if echo
is TRUE
)
also printed in the console.
data(judge_net, package = "snafun")
count_dyads(judge_net)
#> Mutual Null
#> 94 686