DijkstraAlgoritm
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | |
| DistanceFinder | 1 | Calculates the minimum possible distance from root node to all other nodes. |
| DistanceFinderInternal | 1 | Calculates the minimum possible distance from root node to all other nodes. |
| FindPathBiDirectional | 1 | Calculates the shortest path using Bi-Directional Dijkstra algorithm. |
| FindPath | 1 | Calculates the shortest path from startIndex to endIndex specifically. |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| parallel | 1 |
04 Fields
05 Members
SparseMatrix, Int32)| Name | Type | Description |
|---|---|---|
graph | SparseMatrix | The adjacency matrix of the graph. |
vertices | Int32 | Total number of vertices. |
Int32)Calculates the minimum possible distance from root node to all other nodes.
| Name | Type | Description |
|---|---|---|
startIndex | Int32 | - |
Int32, Nullable(Of Int32))Calculates the minimum possible distance from root node to all other nodes.
| Name | Type | Description |
|---|---|---|
startIndex | Int32 | - |
SparseMatrix, Int32, Int32, Int32)Calculates the shortest path using Bi-Directional Dijkstra algorithm.
| Name | Type | Description |
|---|---|---|
graph | SparseMatrix | The adjacency matrix of the graph. |
vertices | Int32 | Total number of vertices. |
startIndex | Int32 | The starting node index. |
endIndex | Int32 | The target node index. |
Returns the target Node containing path and distance info. Returns Nothing if path not found.
Int32, Int32)Calculates the shortest path from startIndex to endIndex specifically.
| Name | Type | Description |
|---|---|---|
startIndex | Int32 | The starting node index. |
endIndex | Int32 | The target node index. |
Returns the target Node containing path and distance info. Returns Nothing if path not found.
网络图中的节点总数
缓存不同起点的计算结果,Key为startIndex