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

View source: R/basics.R

sizeR Documentation

The size of the graph is the number of edges

Description

The size of the graph is the number of edges

Usage

size(graph)

Arguments

graph

The graph.

Value

Numeric scalar, the number of edges.

Examples

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

simplegraph documentation built on Aug. 31, 2023, 9:07 a.m.