This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

VertexList

VertexList[g]
gives a list of all vertices in the graph g.
  • VertexList returns a list of vertices of the graph g.
  • For graphs specified using a rule list, the list of vertices are returned in the order in which they first appear.