Technology, Software Engineering, Programming, Machine Learning, Data Science.
with the help of road (edges between two nodes). Source City (A) : From where journey started. Destination City (C) : Where our journey will end. Roads : Edges between our nodes. Distance between nodes (W) for our analogy. And we take path A (12) – C (20) – B (10) – A then the distance we travel