order {simplegraph}R 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)

[Package simplegraph version 1.0.1 Index]