Skip to contents

Returns the number of edges in a cograph_network.

Usage

n_edges(x)

Arguments

x

A cograph_network object.

Value

Integer: number of edges.

See also

Examples

mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
n_edges(net)  # 3
#> [1] 3