simplegraph (version 1.0.0)

size: The size of the graph is the number of edges

Description

The size of the graph is the number of edges

Usage

size(graph)

Value

Numeric scalar, the number of edges.

Arguments

graph

The graph.

Examples

Run this code
G <- graph(list(A = c("B", "C"), B = "C", C = "A"))
size(G)

Run the code above in your browser using DataCamp Workspace