simplegraph (version 1.0.0)

order: Order of a graph

Description

The order of the graph is the number of vertices.

Usage

order(graph)

Value

Numeric scalar, the number of vertices.

Arguments

graph

The graph.

See Also

Other simple queries: adjacent_vertices, edges, vertices

Examples

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

Run the code above in your browser using DataLab