Skip to content

Commit 7c4a8ec

Browse files
newly added algos
1 parent a91050a commit 7c4a8ec

File tree

2 files changed

+2
-2
lines changed
  • src/main/java/com/thealgorithms/graph/Connected Components

2 files changed

+2
-2
lines changed

src/main/java/com/thealgorithms/graph/Connected Components/Strongly Connected Components - Naive Approach/sccNaive.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static void main(String[] args) {
7474
}
7575
}
7676
System.out.println(adj_list);
77-
SCC_Naive obj = new SCC_Naive();
77+
sccNaive obj = new sccNaive();
7878
System.out.print(obj.getOutput(adj_list,N));
7979
rs.close();
8080
}

src/main/java/com/thealgorithms/graph/Connected Components/Strongly Connected Components - Kosaraju Algorithm/sccOptimized.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static void main(String[] args) {
9292

9393
System.out.println("Adjacency list: " + adjList);
9494

95-
SCC_Optimized obj = new SCC_Optimized();
95+
sccOptimized obj = new sccOptimized();
9696
System.out.println("Number of SCCs: " + obj.getOutput(adjList, N));
9797
rs.close();
9898
}

0 commit comments

Comments
 (0)