simplegraph (version 1.0.0)

vertex_ids: Vertex ids of a graph

Description

Vertex ids of a graph

Usage

vertex_ids(graph)

Value

Character vector of vertex ids.

Arguments

graph

The graph.

Examples

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

Run the code above in your browser using DataCamp Workspace