hiperwalk.Graph.number_of_vertices#

Graph.number_of_vertices()[source]#

Return the total number of vertices in the graph.

This method calculates and returns the cardinality of the vertex set, effectively providing the count of all vertices present in the graph.

Returns:
int

The total number of vertices in the graph.