Skip to contents

[Deprecated]

graph.density() was renamed to edge_density() to create a more consistent API.

Usage

graph.density(graph, loops = FALSE)

Arguments

graph

The input graph.

loops

Logical constant, whether loop edges may exist in the graph. This affects the calculation of the largest possible number of edges in the graph. If this parameter is set to FALSE yet the graph contains self-loops, the result will not be meaningful.