Skip to content

Commit 1c16e90

Browse files
Update DFS_Recursive.java
1 parent dc3ad7c commit 1c16e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DepthFirstSearch/Java/DFS_Recursive.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public static void main(String[] args) {
3737

3838
for(int i=0; i<edges; i++){
3939
System.out.println("To indicate that u is connected to v, type: u v");
40-
int x = in.nextInt();
41-
int y = in.nextInt();
40+
int u = in.nextInt();
41+
int v = in.nextInt();
4242
// Assuming that it's an undirected graph
4343
AdjList[x].add(y);
4444
AdjList[y].add(x);

0 commit comments

Comments
 (0)