2018-02-01 10:47:43 -05:00
|
|
|
#ifndef OSRM_PARTITIONER_TARJAN_GRAPH_WRAPPER_HPP_
|
|
|
|
#define OSRM_PARTITIONER_TARJAN_GRAPH_WRAPPER_HPP_
|
2017-01-26 04:34:01 -05:00
|
|
|
|
2018-02-01 10:47:43 -05:00
|
|
|
#include "partitioner/bisection_graph.hpp"
|
2017-01-26 04:34:01 -05:00
|
|
|
#include "util/integer_range.hpp"
|
|
|
|
#include "util/typedefs.hpp"
|
|
|
|
|
2022-12-11 04:10:26 -05:00
|
|
|
namespace osrm::partitioner
|
2017-01-26 04:34:01 -05:00
|
|
|
{
|
|
|
|
|
|
|
|
class TarjanGraphWrapper
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TarjanGraphWrapper(const BisectionGraph &bisection_graph);
|
|
|
|
|
|
|
|
std::size_t GetNumberOfNodes() const;
|
|
|
|
util::range<EdgeID> GetAdjacentEdgeRange(const NodeID nid) const;
|
|
|
|
NodeID GetTarget(const EdgeID eid) const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
const BisectionGraph &bisection_graph;
|
|
|
|
};
|
|
|
|
|
2022-12-20 12:00:11 -05:00
|
|
|
} // namespace osrm::partitioner
|
2017-01-26 04:34:01 -05:00
|
|
|
|
2018-02-01 10:47:43 -05:00
|
|
|
#endif // OSRM_PARTITIONER_TARJAN_GRAPH_WRAPPER_HPP_
|