my code is correct but i am not getting the correct distance from src node here is my code:https://ide.codingblocks.com/s/359071
Single Source Shortest Path using BFS Graphs
Hey @jatinupadhyay786
You forgot to add this edge :
g.addEdge(3,0);
If this resolves your query then please mark it as resolved