nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Data.GraphTheory / DijkstraAlgoritm

DijkstraAlgoritm

Full name Microsoft.VisualBasic.Data.GraphTheory.Analysis.Dijkstra.DijkstraAlgoritm Assembly Microsoft.VisualBasic.Data.GraphTheory Members 8

01 Syntax

Microsoft.VisualBasic.Data.GraphTheory.Analysis.Dijkstra.DijkstraAlgoritm

02 Methods

NameOverloadsSummary
.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

NameOverloadsSummary
parallel 1

04 Fields

NameOverloadsSummary
vertices 1 网络图中的节点总数
pathCache 1 缓存不同起点的计算结果,Key为startIndex

05 Members

method .ctor #
#ctor(SparseMatrix, Int32)
Parameters
NameTypeDescription
graphSparseMatrix

The adjacency matrix of the graph.

verticesInt32

Total number of vertices.

method DistanceFinder #
DistanceFinder(Int32)

Calculates the minimum possible distance from root node to all other nodes.

Parameters
NameTypeDescription
startIndexInt32

-

method DistanceFinderInternal #
DistanceFinderInternal(Int32, Nullable(Of Int32))

Calculates the minimum possible distance from root node to all other nodes.

Parameters
NameTypeDescription
startIndexInt32

-

method FindPathBiDirectional #
FindPathBiDirectional(SparseMatrix, Int32, Int32, Int32)

Calculates the shortest path using Bi-Directional Dijkstra algorithm.

Parameters
NameTypeDescription
graphSparseMatrix

The adjacency matrix of the graph.

verticesInt32

Total number of vertices.

startIndexInt32

The starting node index.

endIndexInt32

The target node index.

Returns

Returns the target Node containing path and distance info. Returns Nothing if path not found.

method FindPath #
FindPath(Int32, Int32)

Calculates the shortest path from startIndex to endIndex specifically.

Parameters
NameTypeDescription
startIndexInt32

The starting node index.

endIndexInt32

The target node index.

Returns

Returns the target Node containing path and distance info. Returns Nothing if path not found.

field vertices #
vertices

网络图中的节点总数

field pathCache #
pathCache

缓存不同起点的计算结果,Key为startIndex

property parallel #
parallel