Skip to content

Commit

Permalink
Commented out unnecessary main methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
gpapadis committed May 17, 2019
1 parent b5df860 commit fb124bb
Showing 1 changed file with 22 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,27 +168,26 @@ private void validateVertex(int v) {
}
}

public static void main (String[] args) {
UndirectedGraph ug = new UndirectedGraph(13);
ug.addEdge(0, 5);
ug.addEdge(4, 3);
ug.addEdge(0, 1);
ug.addEdge(9, 12);
ug.addEdge(6, 4);
ug.addEdge(5, 4);
ug.addEdge(0, 2);
ug.addEdge(11, 12);
ug.addEdge(9, 10);
ug.addEdge(0, 6);
ug.addEdge(7, 8);
ug.addEdge(9, 11);
ug.addEdge(5, 3);

ConnectedComponents cc = new ConnectedComponents(ug);
System.out.println("Total ccs\t:\t" + cc.count());
for (int i = 0; i < 13; i++) {
System.out.println(cc.id(i));
}

}
// public static void main (String[] args) {
// UndirectedGraph ug = new UndirectedGraph(13);
// ug.addEdge(0, 5);
// ug.addEdge(4, 3);
// ug.addEdge(0, 1);
// ug.addEdge(9, 12);
// ug.addEdge(6, 4);
// ug.addEdge(5, 4);
// ug.addEdge(0, 2);
// ug.addEdge(11, 12);
// ug.addEdge(9, 10);
// ug.addEdge(0, 6);
// ug.addEdge(7, 8);
// ug.addEdge(9, 11);
// ug.addEdge(5, 3);
//
// ConnectedComponents cc = new ConnectedComponents(ug);
// System.out.println("Total ccs\t:\t" + cc.count());
// for (int i = 0; i < 13; i++) {
// System.out.println(cc.id(i));
// }
// }
}

0 comments on commit fb124bb

Please sign in to comment.