Adding ability to ignore weights in shortest path calculations