Initialize shortest path tree through new method