order: Order of a graph

Description Usage Arguments Value See Also Examples

View source: R/basics.R

Description

The order of the graph is the number of vertices.

Usage

1

Arguments

graph

The graph.

Value

Numeric scalar, the number of vertices.

See Also

Other simple queries: adjacent_vertices, edges, vertices

Examples

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

MangoTheCat/simplegraph documentation built on May 9, 2017, 7:27 a.m.