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::printVertexInformation

Prints vertex information of a graph

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::printVertexInformation(G)

Description

Graph::printVertexInformation prints the edges of a graph.

Graph::printVertexInformation(G) prints the edges of the graph G

Examples

Example 1

A circle graph is created and information of the vertices printed to screen:

G := Graph::createCircleGraph(3):
Graph::printVertexInformation(G)
Vertices existing in the graph:
-------------------------------
Vertex 1 has weight None
Vertex 2 has weight None
Vertex 3 has weight None

Example 2

A complete graph is created and information of the vertices printed to screen:

G := Graph::createCompleteGraph(3):
Graph::printVertexInformation(G)
Vertices existing in the graph:
-------------------------------
Vertex 1 has weight None
Vertex 2 has weight None
Vertex 3 has weight None

Parameters

G

Graph

Return Values

Text containing information about the vertices of a graph.

Was this topic helpful?