### DCP-466: Sanvi and TreeMap.....bfs problem

Posted:

**Sun Feb 04, 2018 2:32 am**In the editorial it says this problem could be solved by bfs.but this is a weighted graph.how do i implement bfs to find the distance between two nodes in a weighted graph.i knew that bfs can not be implement in a weighted graph.