Contents

Graph::getVertices

Returns a list with all vertices

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

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?