toggle menu
KAHelpers
androidJvm
switch theme
search in API
dataStructuresAndAlgorithms
/
dev.funkymuse.datastructuresandalgorithms.graphs.djikstra
/
Dijkstra
Dijkstra
class
Dijkstra
<
T
>
(
graph
:
AdjacencyList
<
T
>
)
Members
Constructors
Dijkstra
Link copied to clipboard
constructor
(
graph
:
AdjacencyList
<
T
>
)
Functions
get
All
Shortest
Path
Link copied to clipboard
fun
getAllShortestPath
(
source
:
Vertex
<
T
>
)
:
HashMap
<
Vertex
<
T
>
,
ArrayList
<
Edge
<
T
>
>
>
shortest
Path
Link copied to clipboard
fun
shortestPath
(
start
:
Vertex
<
T
>
)
:
HashMap
<
Vertex
<
T
>
,
Visit
<
T
>
>
fun
shortestPath
(
destination
:
Vertex
<
T
>
,
paths
:
HashMap
<
Vertex
<
T
>
,
Visit
<
T
>
>
)
:
ArrayList
<
Edge
<
T
>
>