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);
71 static void Build(
Graph* graph, std::vector<ArcIndex>* permutation) {
78 #endif // OR_TOOLS_GRAPH_GRAPHS_H_ static ArcIndex ArcReservation(const Graph &graph)
operations_research::StarGraph Graph
static void Build(Graph *graph)
static NodeIndex NodeReservation(const Graph &graph)
static void Build(Graph *graph, std::vector< ArcIndex > *permutation)
static void Build(Graph *graph)
NodeIndexType max_num_nodes() const
static ArcIndex OppositeArc(const Graph &graph, ArcIndex arc)
ArcIndexType max_num_arcs() const
ArcIndexType Opposite(const ArcIndexType arc) const
bool CheckArcValidity(const ArcIndexType arc) const
static ArcIndex OppositeArc(const Graph &graph, ArcIndex arc)
static bool IsArcValid(const Graph &graph, ArcIndex arc)
static bool IsArcValid(const Graph &graph, ArcIndex arc)
static void Build(Graph *graph, std::vector< ArcIndex > *permutation)
Graph::NodeIndex NodeIndex
Collection of objects used to extend the Constraint Solver library.
Graph::NodeIndex NodeIndex
static NodeIndex NodeReservation(const Graph &graph)
static ArcIndex ArcReservation(const Graph &graph)