Close
Close window
TransitiveReduction - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

GraphTheory

TransitiveReduction

construct transitive reduction

Calling Sequence

TransitiveReduction( G )

Parameters

G

-

a graph

Description

The TransitiveReduction( G ) command constructs the graph which is the transitive reduction of the graph G with respect to the edge relation.

The transitive reduction of an undirected graph G is an undirected graph which has the same vertex set and transitive closure as G, but with a minimal number of edges.

Similarly, the transitive reduction of a directed graph G is a directed graph which has the same vertex set and transitive closure as G, but with a minimal number of arcs.

Examples

Construct the transitive reduction graph of a simple directed graph and visualize the two graphs.

>

withGraphTheory:

>

GGraph4,1,2,1,4,2,3,3,4

GGraph 1: a directed graph with 4 vertices and 4 arcs

(1)
>

HTransitiveReductionG

HGraph 2: a directed graph with 4 vertices and 3 arcs

(2)
>

DrawGraphG,H,style=circle



Compatibility

The GraphTheory[TransitiveReduction] command was introduced in Maple 2019.

For more information on Maple 2019 changes, see Updates in Maple 2019 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /