Skip to content
Snippets Groups Projects
Commit 21ccab90 authored by kraleva's avatar kraleva
Browse files

remove prints

parent df1ade8c
Branches
No related tags found
1 merge request!29IterativeSCC
...@@ -80,7 +80,6 @@ public class ConnectedComponentGraph { ...@@ -80,7 +80,6 @@ public class ConnectedComponentGraph {
// we need to print the popped item only // we need to print the popped item only
// if it is not visited. // if it is not visited.
if (visited.get(s) == false) { if (visited.get(s) == false) {
System.out.print(s + " ");
visited.put(s, true); visited.put(s, true);
vertices.add(s); vertices.add(s);
} }
...@@ -149,7 +148,6 @@ public class ConnectedComponentGraph { ...@@ -149,7 +148,6 @@ public class ConnectedComponentGraph {
// we need to print the popped item only // we need to print the popped item only
// if it is not visited. // if it is not visited.
if (visited.get(v) == false) { if (visited.get(v) == false) {
System.out.print(v + " ");
visited.put(v, true); visited.put(v, true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment