Contents

Graph::getEdgesLeaving

Returns the outgoing edges

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

Graph::getEdgesLeaving(G)

Description

Graph::getEdgesLeaving(G) returns a table with the adjacency lists for adjacent (outgoing) edges. Thus Graph::getEdgesLeaving(G) returns a table containing all those vertices w for which there is an edge [v,w] in G.

Examples

Example 1

A small directed graph is created to show the outgoing (adjacent) edges:

V := [1, 2, 3, 4, 5]:
Ed := [[1, 2], [1, 3], [2, 3], [2, 4], [3, 4], [3, 5], [4, 5]]:
G1 := Graph(V, Ed, Directed):
Graph::getEdgesLeaving(G1)

In an undirected graph the output could look like this:

G1 := Graph::createCompleteGraph(5):
Graph::getEdgesLeaving(G1)

Parameters

G

A graph

Return Values

Table

Was this topic helpful?