Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

VertexCount

VertexCount[g]
gives a count of the number of vertices in the graph g.

VertexCount[g,patt]
gives a count of the number of vertices that match the pattern patt.

VertexCount[{vw,},]
uses rules to specify the graph g.

Introduced in 2010
(8.0)
| Updated in 2015
(10.3)