GraphDijkstraState.init constructor
GraphDijkstraState.init()
Implementation
GraphDijkstraState.init(
ID startId,
ID targetId,
HashMap<ID, (double, double)> coords,
HashMap<ID, List<ID>> edges,
) : super.init(startId, targetId, coords, edges) {
gCost = HashMap.from({startId: 0.0});
open = PriorityQueue<ID>((a, b) => gCost[a]!.compareTo(gCost[b]!));
open.add(startId);
nodes[startId] = GraphNode.open;
}