osrm-backend/include/partitioner/recursive_bisection.hpp

36 lines
952 B
C++
Raw Normal View History

#ifndef OSRM_PARTITIONER_RECURSIVE_BISECTION_HPP_
#define OSRM_PARTITIONER_RECURSIVE_BISECTION_HPP_
#include "partitioner/bisection_graph.hpp"
#include "partitioner/recursive_bisection_state.hpp"
2017-02-07 04:26:29 -05:00
#include "util/typedefs.hpp"
#include <cstddef>
#include <vector>
namespace osrm::partitioner
{
class RecursiveBisection
{
public:
RecursiveBisection(BisectionGraph &bisection_graph,
const std::size_t maximum_cell_size,
const double balance,
const double boundary_factor,
const std::size_t num_optimizing_cuts,
const std::size_t small_component_size);
2017-02-07 04:26:29 -05:00
const std::vector<BisectionID> &BisectionIDs() const;
std::uint32_t SCCDepth() const;
private:
BisectionGraph &bisection_graph;
RecursiveBisectionState internal_state;
};
2022-12-20 12:00:11 -05:00
} // namespace osrm::partitioner
#endif // OSRM_PARTITIONER_RECURSIVE_BISECTION_HPP_