C++ Reference: class HamiltonianPathSolver
Note: This documentation is automatically generated.
Method | |
---|---|
BestHamiltonianPathEndNode | Return type: Returns the end-node that yields the shortest Hamiltonian path of all shortest Hamiltonian path from 0 to end-node (end-node != 0). |
ChangeCostMatrix | Return type: Arguments: Replaces the cost matrix while avoiding re-allocating memory. |
ChangeCostMatrix | Return type: Arguments: |
HamiltonianCost | Return type: Arguments: Returns the cost of the Hamiltonian path from 0 to end_node. |
HamiltonianPath | Return type: Arguments: Returns the shortest Hamiltonian path from 0 to end_node. |
HamiltonianPath | Return type: Arguments: Deprecated API. Stores HamiltonianPath(BestHamiltonianPathEndNode()) into *path. |
HamiltonianPathSolver | Return type: Arguments: |
HamiltonianPathSolver | Arguments: |
IsRobust | Return type: Returns true if there won't be precision issues. This is always true for integers, but not for floating-point types. |
TravelingSalesmanCost | Return type: Returns the cost of the TSP tour. |
TravelingSalesmanPath | Return type: Returns the TSP tour in the vector pointed to by the argument. |
TravelingSalesmanPath | Return type: Arguments: Deprecated API. |
VerifiesTriangleInequality | Return type: Returns true if the cost matrix verifies the triangle inequality. |