Shortest path analysis based on VB