size {simplegraph}R 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)

[Package simplegraph version 1.0.1 Index]