48#ifndef OR_TOOLS_GRAPH_ASSIGNMENT_H_
49#define OR_TOOLS_GRAPH_ASSIGNMENT_H_
116 return arc_head_[assignment_arcs_[left_node]];
122 return arc_cost_[assignment_arcs_[left_node]];
127 std::vector<NodeIndex> arc_tail_;
128 std::vector<NodeIndex> arc_head_;
129 std::vector<CostValue> arc_cost_;
130 std::vector<ArcIndex> assignment_arcs_;
SimpleLinearSumAssignment(const SimpleLinearSumAssignment &)=delete
This type is neither copyable nor movable.
NodeIndex RightNode(ArcIndex arc) const
ArcIndex AddArcWithCost(NodeIndex left_node, NodeIndex right_node, CostValue cost)
SimpleLinearSumAssignment()
ArcIndex NumArcs() const
Returns the current number of arcs in the graph.
NodeIndex RightMate(NodeIndex left_node) const
CostValue OptimalCost() const
NodeIndex LeftNode(ArcIndex arc) const
NodeIndex NumNodes() const
CostValue AssignmentCost(NodeIndex left_node) const
SimpleLinearSumAssignment & operator=(const SimpleLinearSumAssignment &)=delete
In SWIG mode, we don't want anything besides these top-level includes.
double Cost
Basic non-strict type for cost. The speed penalty for using double is ~2%.