Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 25a2d2b

Browse files
Added Code
1 parent 644bf6c commit 25a2d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎35. Graph 04 - Directed Graph Problems/Topological_Sort_Using_DFS.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
nodes.add("Dataset");
7575
nodes.add("Face Recognition");
7676

77-
Graph g = new Topological_Sort_Using_DFS().new Graph(7,nodes);
77+
Graph g = new Topological_Sort_Using_DFS().new Graph(nodes.size(),nodes);
7878

7979

8080

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /