Can you send code for bfs for weighted graphs

can you send code for bfs for weighted graphs in ide

hello @kishoretaru

we cannot use bfs on weighted graph.

u can use bfs only on unwiegted graph , or on weigted graph with all edges having same weight.
so if u r asking code of same weight graph then it is exaclty same as standard bfs.
just multiply ur answer with weight to get original answer

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.