Documentation

This is machine translation

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

Graph::getVertices

Returns a list with all 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::getVertices(G)

Description

Graph::getVertices(G) returns the list of all vertices of the Graph G.

Examples

Example 1

A small creation of two different graphs and the output getVertices generates:

G1 := Graph::createCompleteGraph(10):
Graph::getVertices(G1)

G2 := Graph::createCircleGraph([x.i $ i = 1..12]):
Graph::getVertices(G2)

Parameters

G

A graph

Return Values

List

Was this topic helpful?