Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class PruningHamiltonianSolver
Note: This documentation is automatically generated.
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."],[],["The `PruningHamiltonianSolver` class in C++ offers methods for calculating Hamiltonian paths. The `HamiltonianCost` method computes the cost of a path from node 0 to a specified `end_node`, returning the cost as `CostType`. The class constructor `PruningHamiltonianSolver` can be initialized with a `CostFunction` or with the number of nodes (`num_nodes`) and a `CostFunction`. These methods are part of calculating hamiltonian path in the graph.\n"]]