Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Graph::getVertexNumber

Returns the number of vertices.

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

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?