Go to the documentation of this file.
8 #ifndef FIELDS2COVER_TYPES_GRAPH_H_
9 #define FIELDS2COVER_TYPES_GRAPH_H_
15 #include <unordered_map>
19 typedef std::unordered_map<size_t, std::unordered_map<size_t, int64_t>>
37 int64_t INF = 1e15)
const;
40 size_t from,
size_t to)
const;
42 std::vector<std::vector<pair_vec_size__int>>
52 void DFS(
size_t from,
size_t to,
53 std::vector<std::vector<size_t>>& routes,
54 std::vector<bool>& visited,
55 int& route_index)
const;
64 #endif // FIELDS2COVER_TYPES_GRAPH_H_
Types used by fields2cover library.
std::vector< size_t > shortestPath(size_t from, size_t to, int64_t INF=1e15)
map_to_map_to_int getEdges() const
std::vector< std::vector< pair_vec_size__int > > shortestPathsAndCosts(int64_t INF=1e15)
int64_t getCostFromEdge(size_t from, size_t to, int64_t INF=1e15) const
std::unordered_map< size_t, std::unordered_map< size_t, int64_t > > map_to_map_to_int
std::vector< std::vector< pair_vec_size__int > > shortest_paths_
std::vector< size_t > getEdgesFrom(size_t s) const
Graph & addDirectedEdge(size_t from, size_t to, int64_t cost)
std::vector< std::vector< size_t > > allPathsBetween(size_t from, size_t to) const
std::pair< std::vector< size_t >, int64_t > pair_vec_size__int
Graph & removeEdge(size_t i, size_t j)
Graph & addEdge(size_t i, size_t j, int64_t cost)
int64_t shortestPathCost(size_t from, size_t to, int64_t INF=1e15)
void DFS(size_t from, size_t to, std::vector< std::vector< size_t >> &routes, std::vector< bool > &visited, int &route_index) const
Graph & removeDirectedEdge(size_t from, size_t to)
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31