User:Klever: Difference between revisions
Content added Content deleted
(→VBA Examples: Floyd-Warshall) |
|||
Line 21: | Line 21: | ||
Usage: fill in the number of nodes (n) and the non-zero edge distances or costs in sub Floyd or in sub FloydWithPaths. |
Usage: fill in the number of nodes (n) and the non-zero edge distances or costs in sub Floyd or in sub FloydWithPaths. |
||
Then run "Floyd" or "FloydWithPaths". |
Then run "Floyd" or "FloydWithPaths". |
||
Floyd: this sub prints the lengths or costs of the shortest paths but not the paths themselves |
Floyd: this sub prints the lengths or costs of the shortest paths but not the paths themselves |
||
FloydWithPaths: this sub prints the lengths and the nodes along the paths |
FloydWithPaths: this sub prints the lengths and the nodes along the paths |
||