simplegraph (version 1.0.0)

order: 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)