gorder: Order (number of vertices) of a graph

gorderR Documentation

Order (number of vertices) of a graph

Description

vcount() and gorder() are aliases.

Usage

vcount(graph)

gorder(graph)

Arguments

graph

The graph

Value

Number of vertices, numeric scalar.

Related documentation in the C library

igraph_vcount().

See Also

Other structural queries: [.igraph(), [[.igraph(), adjacent_vertices(), are_adjacent(), ends(), get_edge_ids(), gsize(), head_of(), incident(), incident_edges(), is_directed(), neighbors(), tail_of()

Examples

g <- make_ring(10)
gorder(g)
vcount(g)

igraph/rigraph documentation built on Feb. 5, 2025, 6:29 p.m.