minor refactoring; removed traversal mode support from dijkstraoneToMany as we need a more severe change