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

Prints the edge descriptions 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::printEdgeDescInformation(G)

Description

Graph::printEdgeDescInformation prints the edge descriptions of a graph.

Graph::printEdgeDescInformation(G) prints the edge descriptions of the graph G

Examples

Example 1

A circle graph is created and the edge descriptions of it printed to screen:

G := Graph::createCircleGraph(3):
Graph::printEdgeDescInformation(G)
No edge descriptions defined.

G := Graph::setEdgeDescriptions(G, [[1, 2], [2, 3], [3, 1]],
                                ["Shortcut","Highway","Speedup"]):
Graph::printEdgeDescInformation(G)
Edge descriptions existing in the graph:
----------------------------------------
Edge [1, 2] = "Shortcut"
Edge [2, 3] = "Highway"
Edge [3, 1] = "Speedup"

Parameters

G

Graph

Return Values

Text containing information about the edge descriptions of a graph.

Was this topic helpful?