Home   >   User Resources   >   Online Help   >   apaGraph.ShortestDistances.All
 

 

Function index Version 3.0.0

apaGraph.ShortestDistances.All(AdjacencyMatrix)

Excel=apaGraph.ShortestDistances.All(AdjacencyMatrix)

Result

Calculates the shortest distances between all pairs of nodes (vertices) of a graph with Dijkstra’s algorithm.

Syntax

AdjacencyMatrix: n x n adjacency matrix

Remarks

Entries of AdjacencyMatrix that are zero, empty or infinite mean that there is no edge. The distances to nodes that cannot be reached from a node are shown as #N/A.