0
What is the problem with this code?
I am making a dfs program but it is not showing the correct output. I am making a dfs with adjacent matrix without using list, pair and class, just by using array and vector. main algorithm start form line 49 and i am using a random function to generate a graph. https://code.sololearn.com/cL740lSEvEG2/#cpp
2 Respuestas
+ 1
You should enter right vertices
+ 1
Rajdeep Singh I want to do this with adjacent matrix form, rest i can do with entering vertices by telling which vertex is connected to which or by using recursion buy I want to do this in this way