This repository was archived by the owner on Feb 29, 2024. It is now read-only.
File tree
Expand file treeCollapse file tree2 files changed
+4
-0
lines changed Expand file treeCollapse file tree2 files changed
+4
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -7,6 +7,8 @@ public void onVisit(node n) {
|
7 | 7 | public Queue<node> q = new LinkedList<node>();
|
8 | 8 | public ArrayList<node> vn = new ArrayList<node>();
|
9 | 9 | public ArrayList<node> search(node startNode,VisitListener search) {
|
| 10 | +this.q.clear(); |
| 11 | +this.vn.clear(); |
10 | 12 | this.q.add(startNode);
|
11 | 13 | this.vn.add(startNode);
|
12 | 14 | node cur;
|
|
Original file line number | Diff line number | Diff line change |
---|
@@ -7,6 +7,8 @@ public void onVisit(node n) {
|
7 | 7 | public Stack<node> q = new Stack<node>();
|
8 | 8 | public ArrayList<node> vn = new ArrayList<node>();
|
9 | 9 | public ArrayList<node> search(node startNode,VisitListener search) {
|
| 10 | +this.q.clear(); |
| 11 | +this.vn.clear(); |
10 | 12 | this.q.add(startNode);
|
11 | 13 | this.vn.add(startNode);
|
12 | 14 | node cur;
|
|
You can’t perform that action at this time.
0 commit comments