Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DijkstraCalculator

Hierarchy

  • DijkstraCalculator

Index

Constructors

constructor

Properties

adjacencyList

adjacencyList: {}

Type declaration

Methods

addEdge

  • addEdge(vertex1: NodeId, vertex2: NodeId, weight?: number): void

addVertex

  • addVertex(vertex: NodeId): void

calculateShortestPath

  • calculateShortestPath(start: NodeId, finish: NodeId): string[]
  • Given the provided weights of each edge

    Parameters

    Returns string[]

    an {@type Array} showing how to traverse the nodes. If traversal is impossible then it will return an empty array

calculateShortestPathAsLinkedListResult

Generated using TypeDoc