# # another simple route not used by Wikipedia! # # Node neighbours[cost] a b:2 c:4 b a:2 c:1 c b:1 a:4 d:1 d c:1 e:2 e d:2 find a -> e # answer is a -> b -> c -> d -> e total 6