48 #ifndef OR_TOOLS_GRAPH_ASSIGNMENT_H_ 49 #define OR_TOOLS_GRAPH_ASSIGNMENT_H_ 109 return arc_head_[assignment_arcs_[left_node]];
115 return arc_cost_[assignment_arcs_[left_node]];
120 std::vector<NodeIndex> arc_tail_;
121 std::vector<NodeIndex> arc_head_;
122 std::vector<CostValue> arc_cost_;
123 std::vector<ArcIndex> assignment_arcs_;
130 #endif // OR_TOOLS_GRAPH_ASSIGNMENT_H_
NodeIndex RightMate(NodeIndex left_node) const
NodeIndex NumNodes() const
CostValue Cost(ArcIndex arc) const
ArcIndex AddArcWithCost(NodeIndex left_node, NodeIndex right_node, CostValue cost)
CostValue AssignmentCost(NodeIndex left_node) const
Collection of objects used to extend the Constraint Solver library.
CostValue OptimalCost() const
SimpleLinearSumAssignment()
NodeIndex LeftNode(ArcIndex arc) const
NodeIndex RightNode(ArcIndex arc) const