17#ifndef OR_TOOLS_GRAPH_GRAPHS_H_
18#define OR_TOOLS_GRAPH_GRAPHS_H_
28template <
typename Graph>
39 return graph.node_capacity();
42 return graph.arc_capacity();
46 graph->Build(permutation);
67 return graph.max_num_nodes();
70 return graph.max_num_arcs();
In SWIG mode, we don't want anything besides these top-level includes.
static void Build(Graph *graph)
Graph::NodeIndex NodeIndex
static ArcIndex ArcReservation(const Graph &graph)
static void Build(Graph *graph, std::vector< ArcIndex > *permutation)
static ArcIndex OppositeArc(const Graph &graph, ArcIndex arc)
static NodeIndex NodeReservation(const Graph &graph)
operations_research::StarGraph Graph
static bool IsArcValid(const Graph &graph, ArcIndex arc)
static void Build(Graph *graph)
static ArcIndex ArcReservation(const Graph &graph)
Graph::NodeIndex NodeIndex
static bool IsArcValid(const Graph &graph, ArcIndex arc)
static ArcIndex OppositeArc(const Graph &graph, ArcIndex arc)
static NodeIndex NodeReservation(const Graph &graph)
static void Build(Graph *graph, std::vector< ArcIndex > *permutation)