WOLFRAM

Copy to clipboard.

gives the list of vertices for the graph g.

Copy to clipboard.
VertexList[g,patt]

gives a list of vertices that match the pattern patt.

Copy to clipboard.
VertexList[{vw,},]

uses rules vw to specify the graph g.

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 all

Basic Examples  (3)Summary of the most common use cases

The vertex list for an explicitly constructed graph:

Out[1]=1
Out[2]=2

The vertex list for a parametrically constructed graph:

Out[1]=1

Find all vertices that match a pattern:

Out[1]=1

Scope  (5)Survey of the scope of standard use cases

VertexList works with undirected graphs:

Out[2]=2

Directed graphs:

Out[1]=1

Use rules to specify the graph:

Out[1]=1

Use patterns to select a subset of vertices:

Out[1]=1
Out[2]=2
Out[3]=3

VertexList works with large graphs:

Out[2]=2

Applications  (2)Sample problems that can be solved with this function

Find all vertices with a given annotation:

Out[1]=1
Out[2]=2

Highlight the vertex by the vertex degree:

Out[3]=3

Properties & Relations  (7)Properties of the function, and connections to other functions

VertexCount can be found using VertexList:

Out[1]=1
Out[2]=2
Out[3]=3

VertexIndex gives the position of a vertex in VertexList:

Out[1]=1
Out[2]=2
Out[3]=3

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

Out[2]=2
Out[3]=3

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

Out[1]=1
Out[2]=2

The order can be modified with an explicit vertex list:

Out[3]=3
Out[4]=4

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

Out[2]=2

Rows of the incidence matrix correspond to VertexList:

Out[2]=2

Vertices can be specified in Graph:

Out[1]=1
Out[2]=2

AdjacencyGraph:

Out[3]=3
Out[4]=4

IncidenceGraph:

Out[5]=5
Out[6]=6
Wolfram Research (2010), VertexList, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexList.html (updated 2015).
Copy to clipboard.
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).

Copy to clipboard.
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.

Copy to clipboard.
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

Copy to clipboard.
Wolfram Language. (2010). VertexList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexList.html

BibTeX

@misc{reference.wolfram_2024_vertexlist, author="Wolfram Research", title="{VertexList}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/VertexList.html}", note=[Accessed: 10-January-2025 ]}

Copy to clipboard.
@misc{reference.wolfram_2024_vertexlist, author="Wolfram Research", title="{VertexList}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/VertexList.html}", note=[Accessed: 10-January-2025 ]}

BibLaTeX

@online{reference.wolfram_2024_vertexlist, organization={Wolfram Research}, title={VertexList}, year={2015}, url={https://reference.wolfram.com/language/ref/VertexList.html}, note=[Accessed: 10-January-2025 ]}

Copy to clipboard.
@online{reference.wolfram_2024_vertexlist, organization={Wolfram Research}, title={VertexList}, year={2015}, url={https://reference.wolfram.com/language/ref/VertexList.html}, note=[Accessed: 10-January-2025 ]}