# # simple route used by Wikipedia # # Node neighbours[cost] a b:2 c:4 b a:2 c:1 c b:1 a:4 find a -> c # answer is a -> b -> c total 3