Rename module partition to partitioner. This cultivates naming used in existing modules like extractor, customizer, etc. - noun vs verb (word partition is both though).
30 lines
673 B
C++
30 lines
673 B
C++
#ifndef OSRM_PARTITIONER_TARJAN_GRAPH_WRAPPER_HPP_
|
|
#define OSRM_PARTITIONER_TARJAN_GRAPH_WRAPPER_HPP_
|
|
|
|
#include "partitioner/bisection_graph.hpp"
|
|
#include "util/integer_range.hpp"
|
|
#include "util/typedefs.hpp"
|
|
|
|
namespace osrm
|
|
{
|
|
namespace partitioner
|
|
{
|
|
|
|
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;
|
|
};
|
|
|
|
} // namespace partitioner
|
|
} // namespace osrm
|
|
|
|
#endif // OSRM_PARTITIONER_TARJAN_GRAPH_WRAPPER_HPP_
|