forked from IvanLu1024/Java-Notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain4.java
More file actions
17 lines (14 loc) · 400 Bytes
/
Main4.java
File metadata and controls
17 lines (14 loc) · 400 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package code_13_graph;
/**
* Created by 18351 on 2019/1/6.
*/
public class Main4 {
public static void main(String[] args) {
SparseGraph g2=new SparseGraph(6,false);
ReadGraph.readGraph(g2,"testG2.txt");
DepthFirstPaths dfp=new DepthFirstPaths(g2,0);
dfp.showPath(5);
BreadthFirstPaths bfp=new BreadthFirstPaths(g2,0);
bfp.showPath(3);
}
}