|
Routify Documentation
|
Static Public Member Functions | |
| static GraphPath< CustomVertex, CustomEdge > | aStar (CustomVertex cFrom, CustomVertex cTo, HashMap< CustomEdge, Double > weights, CustomAsSubgraph< CustomVertex, CustomEdge > graph) throws Exception |
Provides routing functionalities using graph-based algorithms and custom criteria. This class includes methods for calculating routes based on various environmental factors like slope, green index, noise, air quality, and traffic. It integrates with the JGraphT library to perform graph operations and utilizes custom classes for vertices, edges, and subgraphs.
|
inlinestatic |
Calculates the shortest path between two points using the A* algorithm and an admissible heuristic.
| cFrom | The starting point as a CustomVertex. |
| cTo | The ending point as a CustomVertex. |
| weights | A HashMap containing the weights of the edges. |
| graph | The graph represented as a CustomAsSubgraph. |
GraphPath representing the shortest path between the two points. | Exception | if the path cannot be calculated. |