Skip to contents

Number of edges in a simple undirected graph

Usage

morie_count_edges(adjacency)

Arguments

adjacency

Symmetric 0/1 matrix.

Value

Integer edge count.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_count_edges(V)
#> [1] 0