graph/example/connected_components.expected
2000-12-08 15:30:27 +00:00

20 lines
426 B
Plaintext

An undirected graph:
Total number of components: 3
Vertex 0 is in component 0
Vertex 1 is in component 0
Vertex 2 is in component 1
Vertex 3 is in component 2
Vertex 4 is in component 0
Vertex 5 is in component 1
A directed graph:
Total number of components: 3
Vertex 0 is in component 2
Vertex 1 is in component 2
Vertex 2 is in component 1
Vertex 3 is in component 2
Vertex 4 is in component 2
Vertex 5 is in component 0