Changes the graph capacities. The functions will fail in debug mode if:
- const_capacities_ is true.
- A valid node does not fall into the new node range.
- A valid arc does not fall into the new arc range.
In non-debug mode, const_capacities_ is ignored and nothing will happen
if the new capacity value for the arcs or the nodes is too small.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["`BaseGraph` is a fundamental class in OR-Tools for representing graphs, providing functionalities for managing nodes and arcs."],["It offers methods to access and iterate through all nodes and arcs within the graph, as well as check their validity."],["`BaseGraph` allows for reserving capacities for nodes and arcs, enabling efficient memory allocation and potential performance improvements."],["It includes methods to freeze capacities and group forward arcs based on specific criteria, offering flexibility in graph manipulation."]]],["The `BaseGraph` class provides methods for managing graph structures. Key actions include: retrieving all nodes and forward arcs (`AllNodes`, `AllForwardArcs`), checking the validity of nodes and arcs (`IsNodeValid`, `IsArcValid`), and determining the number of nodes and arcs (`num_nodes`, `num_arcs`). It supports capacity management through `Reserve`, `ReserveNodes`, and `ReserveArcs`, alongside `node_capacity` and `arc_capacity`. Additionally, it allows freezing capacities via `FreezeCapacities` and grouping forward arcs with `GroupForwardArcsByFunctor`.\n"]]