GraphTheory
TransitiveReduction
construct transitive reduction
Calling Sequence
Parameters
Description
Examples
Compatibility
TransitiveReduction( G )
G
-
a graph
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.
Construct the transitive reduction graph of a simple directed graph and visualize the two graphs.
withGraphTheory:
G≔Graph4,1,2,1,4,2,3,3,4
G≔Graph 1: a directed graph with 4 vertices and 4 arcs
H≔TransitiveReductionG
H≔Graph 2: a directed graph with 4 vertices and 3 arcs
DrawGraphG,H,style=circle
The GraphTheory[TransitiveReduction] command was introduced in Maple 2019.
For more information on Maple 2019 changes, see Updates in Maple 2019.
See Also
GraphTheory[AllPairsDistance]
GraphTheory[ReverseGraph]
GraphTheory[TransitiveClosure]
Download Help Document