GraphTheory
Condensation
condense graph to its strongly connected components
Calling Sequence
Parameters
Description
Definition
Examples
Compatibility
Condensation(G)
G
-
graph
Condensation(G) returns the condensation of G.
The vertices of the resulting graph are integers corresponding to the index of the strongly connected component returned by StronglyConnectedComponents.
The condensation of a graph G is a graph C whose vertices correspond to the strongly connected components of G. An edge exists in C from u to v if there exists an edge from a to b in G for a a vertex in the strongly connected component corresponding to u, and b a vertex in the strongly connected component corresponding to v.
Note if G is undirected, the condensation has no edges. This operation is therefore generally most interesting for directed graphs.
The graph below is connected but not strongly connected since vertex 1 is not reachable from vertices 2 or 3.
with⁡GraphTheory:
T≔Digraph⁡1,2,3,1,2,1,3,2,3,3,2
T≔Graph 1: a directed graph with 3 vertices and 4 arc(s)
DrawGraph⁡T
IsConnected⁡T
true
Condensation⁡T
Graph 2: a directed graph with 2 vertices and 1 arc(s)
G≔Digraph⁡1,2,2,3,3,4
G≔Graph 3: a directed graph with 4 vertices and 3 arc(s)
Condensation⁡G
Graph 4: a directed graph with 4 vertices and 3 arc(s)
The GraphTheory[Condensation] command was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
See Also
Contract
IsStronglyConnected
StronglyConnectedComponents
Download Help Document