osrm-backend/include/partitioner/recursive_bisection.hpp
2022-12-20 18:00:11 +01:00

36 lines
952 B
C++

#ifndef OSRM_PARTITIONER_RECURSIVE_BISECTION_HPP_
#define OSRM_PARTITIONER_RECURSIVE_BISECTION_HPP_
#include "partitioner/bisection_graph.hpp"
#include "partitioner/recursive_bisection_state.hpp"
#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);
const std::vector<BisectionID> &BisectionIDs() const;
std::uint32_t SCCDepth() const;
private:
BisectionGraph &bisection_graph;
RecursiveBisectionState internal_state;
};
} // namespace osrm::partitioner
#endif // OSRM_PARTITIONER_RECURSIVE_BISECTION_HPP_