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