Dijkstra’s Shortest Path Algorithm软件

calculates the shortest path and distance between two nodes on a map

软件应用简介

Dijkstra's Shortest Path Algorithm软件

This function can 

1. Find the shortest path and distance from a starting node to an ending node on a map** 

2. Find the shortest paths and distances from a starting node to ALL other nodes on a map**

**The map should consist of nodes and segments, such that: 

1. nodes have the format [ID X Y] or [ID X Y Z] (with ID being an integer, and X,Y,Z representing position coordinates and of type double) 

2. segments have the format [ID N1 N2] (with ID being an integer, and N1 N2 representing IDs from the nodes list such that there is an [undirected] edge/segment between node N1 and node N2, and obviously of integer type also)

Note: 

The function generates a random map of nodes and segments that it uses if no inputs are given. This way, it acts like a script if it is run with no inputs, and it acts like a function otherwise.

界面展示

Dijkstra's Shortest Path Algorithm软件

结果示意

Dijkstra's Shortest Path Algorithm软件

规格 价

0元试用
0.0元人民币/月

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2022年9月18日
下一篇 2022年9月18日

相关推荐