Contents

Graph::getEdges

Returns a list with all edges

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

Graph::getEdges(G)

Description

Graph::getEdges(G) returns a list containing all edges of the graph G. Each edge is represented by a list containing the two connected vertices.

Examples

Example 1

Graph::getEdges only returns the edges, without their capacities:

G1 := Graph::createCircleGraph([v1, v2, v3, v4]):
Graph::getEdges(G1)

G2 := Graph::createCompleteGraph(3):
Graph::getEdges(G2)

Parameters

G

A Graph

Return Values

List of all edges, a list of lists

Was this topic helpful?