Perform a dyad census

count_dyads(x, echo = TRUE)

Arguments

x

graph data

echo

logical, should the result be printed in the console? Default is TRUE.

Value

a data.frame

Details

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.

Examples

data(judge_net, package = "snafun")
count_dyads(judge_net)
#>  Mutual Null
#>      94  686