Documentation

Graph::printEdgeInformation

Prints the edges of a graph

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

Graph::printEdgeInformation(G)

Description

Graph::printEdgeInformation prints the edges of a graph.

Graph::printEdgeInformation(G) prints the edges used in the graph G.

Examples

Example 1

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

G := Graph::createCircleGraph(3):
Graph::printEdgeInformation(G)
Edges existing in the graph:
----------------------------
[1, 2], [2, 3], [3, 1]

Example 2

A complete graph is created and the edges of it printed to screen:

G := Graph::createCompleteGraph(3):
Graph::printEdgeInformation(G)
Edges existing in the graph:
----------------------------
[1, 2], [1, 3], [2, 1], [2, 3], [3, 1], [3, 2]

Parameters

G

Graph

Return Values

Text containing information about the edges of a graph.

Was this topic helpful?