Contents

Graph::getVertexNumber

Returns the number of vertices.

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

Graph::getVertexNumber(G)

Description

Graph::getVertexNumber(G) returns a number representing the number of vertices in G.

Examples

Example 1

An example with 100 vertices:

G1 := Graph::createCompleteGraph(100):
Graph::getVertexNumber(G1)

Parameters

G

A graph

Return Values

Number

Was this topic helpful?