 |
OR-Tools
8.1
|
Go to the documentation of this file.
17 #ifndef OR_TOOLS_GRAPH_GRAPHS_H_
18 #define OR_TOOLS_GRAPH_GRAPHS_H_
26 template <
typename Graph>
31 return graph.OppositeArc(arc);
34 return graph.IsArcValid(arc);
37 return graph.node_capacity();
40 return graph.arc_capacity();
43 static void Build(
Graph* graph, std::vector<ArcIndex>* permutation) {
44 graph->Build(permutation);
65 return graph.max_num_nodes();
68 return graph.max_num_arcs();
71 static void Build(
Graph* graph, std::vector<ArcIndex>* permutation) {
78 #endif // OR_TOOLS_GRAPH_GRAPHS_H_
static bool IsArcValid(const Graph &graph, ArcIndex arc)
static void Build(Graph *graph)
ArcIndexType Opposite(const ArcIndexType arc) const
static ArcIndex ArcReservation(const Graph &graph)
operations_research::StarGraph Graph
static ArcIndex OppositeArc(const Graph &graph, ArcIndex arc)
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
static ArcIndex OppositeArc(const Graph &graph, ArcIndex arc)
static ArcIndex ArcReservation(const Graph &graph)
static bool IsArcValid(const Graph &graph, ArcIndex arc)
static void Build(Graph *graph, std::vector< ArcIndex > *permutation)
static NodeIndex NodeReservation(const Graph &graph)
static void Build(Graph *graph, std::vector< ArcIndex > *permutation)
bool CheckArcValidity(const ArcIndexType arc) const
Graph::NodeIndex NodeIndex
static void Build(Graph *graph)
static NodeIndex NodeReservation(const Graph &graph)
Graph::NodeIndex NodeIndex