The order of the graph is the number of vertices.
order(graph)
Numeric scalar, the number of vertices.
The graph.
Other simple queries: adjacent_vertices, edges, vertices
adjacent_vertices
edges
vertices
G <- graph(list(A = c("B", "C"), B = "C", C = "A")) order(G)
Run the code above in your browser using DataLab