order: Order of a graph

View source: R/basics.R

orderR Documentation

Order of a graph

Description

The order of the graph is the number of vertices.

Usage

order(graph)

Arguments

graph

The graph.

Value

Numeric scalar, the number of vertices.

See Also

Other simple queries: adjacent_vertices(), edges(), vertices()

Examples

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

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