testtopologicalorder.output

来自「datastucutre and algorithms, application」· OUTPUT 代码 · 共 78 行

OUTPUT
78
字号
Enter number of edges in graph
Enter weighted edge 1
Enter weighted edge 2
Enter weighted edge 3
Enter weighted edge 4
Enter weighted edge 5
Enter weighted edge 6
Enter weighted edge 7
Graph 0 is
Number of Vertices = 7
Number of Edges = 7
0  1  1  0  1  0  0  
1  0  0  1  1  0  0  
1  0  0  1  0  0  0  
0  1  1  0  1  0  0  
1  1  0  1  0  0  0  
0  0  0  0  0  0  0  
0  0  0  0  0  0  0  


Graph 1 is
Number of Vertices = 7
Number of Edges = 7
0  1  1  0  1  0  0  
0  0  0  1  1  0  0  
0  0  0  1  0  0  0  
0  0  0  0  1  0  0  
0  0  0  0  0  0  0  
0  0  0  0  0  0  0  
0  0  0  0  0  0  0  


graph::topologicalOrder() not defined for undirected graphs
The topological order is 7  6  1  3  2  4  5  graph::topologicalOrder() not defined for undirected graphs
The topological order is 7  6  1  2  3  4  5  graph::topologicalOrder() not defined for undirected graphs
The topological order is 7  6  1  3  2  4  5  graph::topologicalOrder() not defined for undirected graphs
The topological order is 7  6  1  2  3  4  5  Enter number of edges in graph
Enter weighted edge 1
Enter weighted edge 2
Enter weighted edge 3
Enter weighted edge 4
Enter weighted edge 5
Enter weighted edge 6
Enter weighted edge 7
Enter weighted edge 8
Graph 0 is
Number of Vertices = 7
Number of Edges = 7
0  1  1  0  1  0  0  
1  0  0  1  1  0  0  
1  0  0  1  0  0  0  
0  1  1  0  1  0  0  
1  1  0  1  0  0  0  
0  0  0  0  0  0  0  
0  0  0  0  0  0  0  


Graph 1 is
Number of Vertices = 7
Number of Edges = 8
0  1  1  0  1  0  0  
0  0  0  1  1  0  0  
0  0  0  1  0  0  0  
0  0  0  0  1  0  0  
1  0  0  0  0  0  0  
0  0  0  0  0  0  0  
0  0  0  0  0  0  0  


graph::topologicalOrder() not defined for undirected graphs
The digraph has no topological order
graph::topologicalOrder() not defined for undirected graphs
The digraph has no topological order
graph::topologicalOrder() not defined for undirected graphs
The digraph has no topological order
graph::topologicalOrder() not defined for undirected graphs
The digraph has no topological order

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?