Skip to main content

VertexList

VertexList[g] gives the list of vertices for the graph g.

VertexList[g,patt] gives a list of vertices that match the pattern patt.

VertexList[{v->w,…},…] uses rules v->w to specify the graph g.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.