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

Description Usage Arguments Value Examples

View source: R/basics.R

Description

The size of the graph is the number of edges

Usage

1

Arguments

graph

The graph.

Value

Numeric scalar, the number of edges.

Examples

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

MangoTheCat/simplegraph documentation built on May 9, 2017, 7:27 a.m.