Returns one more than the largest index of an extant direct
arc. To be used as a helper when clients need to dimension or
iterate over arrays of arc annotation information.
Returns one more than the largest index of an extant node,
meaning a node that is mentioned as the head or tail of some arc
in the graph. To be used as a helper when clients need to
dimension or iterate over arrays of node annotation information.
Utility function to check that a node index is within the bounds AND
different from kNilNode.
Returns true if node is in the range [kFirstNode .. max_num_nodes_).
It is exported so that users of the DerivedGraph class can use it.
To be used in a DCHECK; also used internally to validate
arguments passed to our methods from clients (e.g., AddArc()).
Returns one more than the largest valid index of a direct arc. To
be used as a helper when clients need to dimension or iterate
over arrays of arc annotation information.
Returns one more than the largest valid index of a node. To be
used as a helper when clients need to dimension or iterate over
arrays of node annotation information.
[[["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."],[[["`StarGraphBase` is a C++ class within the OR-Tools library providing a foundation for representing directed graphs."],["It offers methods for accessing and managing nodes and arcs, including querying their properties and relationships."],["The class includes functions for retrieving graph size and validating node indices for operations."],["Developers can use `StarGraphBase` as a base to build more specialized graph structures for their algorithms."],["The documentation describes various methods, such as `Head`, `LookUpArc`, and `IsNodeValid`, along with their parameters and return types."]]],["The `StarGraphBase` class provides methods for managing graph structures. Key actions include retrieving the number of nodes and arcs (`num_nodes`, `num_arcs`), and obtaining index bounds (`end_node_index`, `end_arc_index`, `max_end_node_index`, `max_end_arc_index`). Methods also exist to check node validity (`IsNodeValid`), look up arcs (`LookUpArc`), and find an arc's head (`Head`). Debugging strings for nodes and arcs can also be generated (`NodeDebugString`, `ArcDebugString`). The maximum number of nodes and arcs are also accessible (`max_num_nodes`, `max_num_arcs`).\n"]]