Go to the documentation of this file.
13 const Point& from,
const Point& to, int64_t cost) {
62 std::vector<Point> nodes;
64 nodes.emplace_back(n.first);
81 std::vector<std::vector<Point>> routes;
82 for (
auto&& i_route : int_routes) {
83 routes.emplace_back();
84 for (
auto&& i : i_route) {
92 const Point& from,
const Point& to, int64_t INF) {
94 std::vector<Point>
path;
95 for (
auto&& i : i_path) {
102 const Point& from,
const Point& to, int64_t INF) {
Graph2D & addEdge(const Point &i, const Point &j, int64_t cost)
Types used by fields2cover library.
int64_t shortestPathCost(const Point &from, const Point &to, int64_t INF=1<< 30)
Point indexToNode(size_t id) const
Graph2D & removeDirectedEdge(const Point &from, const Point &to)
Graph2D & addDirectedEdge(const Point &from, const Point &to, int64_t cost)
std::vector< Point > getNodes() const
size_t nodeToIndex(const Point &p) const
std::unordered_map< size_t, Point > index_to_nodes_
std::vector< Point > shortestPath(const Point &from, const Point &to, int64_t INF=1<< 30)
Graph2D & removeEdge(const Point &i, const Point &j)
double distance(const Geometry< T2, R2 > &p) const
Compute shortest distance between this and another geometry.
std::unordered_map< Point, size_t > nodes_to_index_
std::vector< std::vector< Point > > allPathsBetween(const Point &from, const Point &to) const
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31