Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: shortestpaths
Note: This documentation is automatically generated.
This file contains various shortest paths utilities.
Keywords: directed graph, cheapest path, shortest path, Dijkstra, spp.
Function |
Type |
Arguments |
Comments |
AStarShortestPath | Return type: bool Arguments: int node_count, int start_node, int end_node, std::function<int64_t(int, int)> graph, std::function<int64_t(int)> heuristic, int64_t disconnected_distance, std::vector<int>* nodes |
BellmanFordShortestPath | Return type: bool Arguments: int node_count, int start_node, int end_node, std::function<int64_t(int, int)> graph, int64_t disconnected_distance, std::vector<int>* nodes |
DijkstraShortestPath | Return type: bool Arguments: int node_count, int start_node, int end_node, std::function<int64_t(int, int)> graph, int64_t disconnected_distance, std::vector<int>* nodes |
StableDijkstraShortestPath | Return type: bool Arguments: int node_count, int start_node, int end_node, std::function<int64_t(int, int)> graph, int64_t disconnected_distance, std::vector<int>* nodes |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[],[],null,[]]