VertexList
✖
VertexList
Details

- VertexList is also known as nodes or actors.
- VertexList returns the list of vertices in the order used by the graph g.

Examples
open allclose allBasic Examples (3)Summary of the most common use cases
The vertex list for an explicitly constructed graph:

https://wolfram.com/xid/0bdp8tpkq-f8diwi


https://wolfram.com/xid/0bdp8tpkq-kk0qbl

The vertex list for a parametrically constructed graph:

https://wolfram.com/xid/0bdp8tpkq-muw21

Find all vertices that match a pattern:

https://wolfram.com/xid/0bdp8tpkq-tncjj

Scope (5)Survey of the scope of standard use cases
VertexList works with undirected graphs:

https://wolfram.com/xid/0bdp8tpkq-2n22nw


https://wolfram.com/xid/0bdp8tpkq-lkwx7m

Use rules to specify the graph:

https://wolfram.com/xid/0bdp8tpkq-bndh30

Use patterns to select a subset of vertices:

https://wolfram.com/xid/0bdp8tpkq-53nmq


https://wolfram.com/xid/0bdp8tpkq-bp7bob


https://wolfram.com/xid/0bdp8tpkq-ztobs

VertexList works with large graphs:

https://wolfram.com/xid/0bdp8tpkq-pq9ae

https://wolfram.com/xid/0bdp8tpkq-pt10p8

Applications (2)Sample problems that can be solved with this function
Find all vertices with a given annotation:

https://wolfram.com/xid/0bdp8tpkq-obof4g


https://wolfram.com/xid/0bdp8tpkq-31ufl

Highlight the vertex by the vertex degree:

https://wolfram.com/xid/0bdp8tpkq-ebd33q

https://wolfram.com/xid/0bdp8tpkq-rzl9c

https://wolfram.com/xid/0bdp8tpkq-capbob

Properties & Relations (7)Properties of the function, and connections to other functions
VertexCount can be found using VertexList:

https://wolfram.com/xid/0bdp8tpkq-rtzao


https://wolfram.com/xid/0bdp8tpkq-cnrlqt


https://wolfram.com/xid/0bdp8tpkq-dw7ac3

VertexIndex gives the position of a vertex in VertexList:

https://wolfram.com/xid/0bdp8tpkq-b6i6tc


https://wolfram.com/xid/0bdp8tpkq-d0o81c


https://wolfram.com/xid/0bdp8tpkq-h7d8sv

Use VertexQ to test if a vertex is a member of VertexList:

https://wolfram.com/xid/0bdp8tpkq-qsow

https://wolfram.com/xid/0bdp8tpkq-g8zbu0


https://wolfram.com/xid/0bdp8tpkq-qxa53

Vertices are taken in the order they appear in the list of edges:

https://wolfram.com/xid/0bdp8tpkq-hwzj2q


https://wolfram.com/xid/0bdp8tpkq-ja4d8

The order can be modified with an explicit vertex list:

https://wolfram.com/xid/0bdp8tpkq-deck35


https://wolfram.com/xid/0bdp8tpkq-tx5ww

Rows and columns of the adjacency matrix follow the order given by VertexList:

https://wolfram.com/xid/0bdp8tpkq-kwmhmh

https://wolfram.com/xid/0bdp8tpkq-cwu88m


https://wolfram.com/xid/0bdp8tpkq-i573me

Rows of the incidence matrix correspond to VertexList:

https://wolfram.com/xid/0bdp8tpkq-x999l1

https://wolfram.com/xid/0bdp8tpkq-ip9ho


https://wolfram.com/xid/0bdp8tpkq-dry0v4

Vertices can be specified in Graph:

https://wolfram.com/xid/0bdp8tpkq-lj1md


https://wolfram.com/xid/0bdp8tpkq-bc25r2


https://wolfram.com/xid/0bdp8tpkq-l0kdv6


https://wolfram.com/xid/0bdp8tpkq-iorx6k


https://wolfram.com/xid/0bdp8tpkq-emj4u3


https://wolfram.com/xid/0bdp8tpkq-cikafm

Wolfram Research (2010), VertexList, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexList.html (updated 2015).
Text
Wolfram Research (2010), VertexList, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexList.html (updated 2015).
Wolfram Research (2010), VertexList, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexList.html (updated 2015).
CMS
Wolfram Language. 2010. "VertexList." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/VertexList.html.
Wolfram Language. 2010. "VertexList." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/VertexList.html.
APA
Wolfram Language. (2010). VertexList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexList.html
Wolfram Language. (2010). VertexList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexList.html
BibTeX
@misc{reference.wolfram_2025_vertexlist, author="Wolfram Research", title="{VertexList}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/VertexList.html}", note=[Accessed: 10-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_vertexlist, organization={Wolfram Research}, title={VertexList}, year={2015}, url={https://reference.wolfram.com/language/ref/VertexList.html}, note=[Accessed: 10-July-2025
]}