Skip to contents

Density of an undirected simple graph (Wasserman & Faust Ch 4, densty)

Usage

morie_density(G)

Arguments

G

Binary symmetric hollow adjacency matrix, at least 2 nodes.

Value

List with estimate (density), n_edges, n_possible, n, method.

Examples

morie_density(rbind(c(0, 1, 0), c(1, 0, 1), c(0, 1, 0)))$n_edges
#> [1] 2