![]() |
OR-Tools
9.2
|
Classes | |
| class | OutgoingArcIterator |
Public Types | |
| typedef NodeIndexType | NodeIndex |
| typedef ArcIndexType | ArcIndex |
Public Member Functions | |
| StaticGraph () | |
| StaticGraph (NodeIndexType num_nodes, ArcIndexType arc_capacity) | |
| NodeIndexType | Head (ArcIndexType arc) const |
| NodeIndexType | Tail (ArcIndexType arc) const |
| ArcIndexType | OutDegree (NodeIndexType node) const |
| BeginEndWrapper< OutgoingArcIterator > | OutgoingArcs (NodeIndexType node) const |
| BeginEndWrapper< OutgoingArcIterator > | OutgoingArcsStartingFrom (NodeIndexType node, ArcIndexType from) const |
| BeginEndWrapper< NodeIndexType const * > | operator[] (NodeIndexType node) const |
| void | ReserveNodes (NodeIndexType bound) override |
| void | ReserveArcs (ArcIndexType bound) override |
| void | AddNode (NodeIndexType node) |
| ArcIndexType | AddArc (NodeIndexType tail, NodeIndexType head) |
| void | Build () |
| void | Build (std::vector< ArcIndexType > *permutation) |
| NodeIndexType | num_nodes () const |
| ArcIndexType | num_arcs () const |
| IntegerRange< NodeIndex > | AllNodes () const |
| IntegerRange< ArcIndex > | AllForwardArcs () const |
| bool | IsNodeValid (NodeIndexType node) const |
| bool | IsArcValid (ArcIndexType arc) const |
| NodeIndexType | node_capacity () const |
| ArcIndexType | arc_capacity () const |
| void | Reserve (NodeIndexType node_capacity, ArcIndexType arc_capacity) |
| void | FreezeCapacities () |
| void | GroupForwardArcsByFunctor (const A &a, B *b) |
| ArcIndexType | max_end_arc_index () const |
Static Public Attributes | |
| static const NodeIndexType | kNilNode |
| static const ArcIndexType | kNilArc |
Protected Member Functions | |
| void | ComputeCumulativeSum (std::vector< ArcIndexType > *v) |
| void | BuildStartAndForwardHead (SVector< NodeIndexType > *head, std::vector< ArcIndexType > *start, std::vector< ArcIndexType > *permutation) |
Protected Attributes | |
| NodeIndexType | num_nodes_ |
| NodeIndexType | node_capacity_ |
| ArcIndexType | num_arcs_ |
| ArcIndexType | arc_capacity_ |
| bool | const_capacities_ |
|
inline |
|
inline |
| ArcIndexType AddArc | ( | NodeIndexType | tail, |
| NodeIndexType | head | ||
| ) |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
inlineinherited |
|
inlineinherited |
| BeginEndWrapper< NodeIndexType const * > operator[] | ( | NodeIndexType | node | ) | const |
| BeginEndWrapper<OutgoingArcIterator> OutgoingArcs | ( | NodeIndexType | node | ) | const |
| BeginEndWrapper<OutgoingArcIterator> OutgoingArcsStartingFrom | ( | NodeIndexType | node, |
| ArcIndexType | from | ||
| ) | const |
|
inlineinherited |
|
overridevirtual |
Reimplemented from BaseGraph< NodeIndexType, ArcIndexType, false >.
|
overridevirtual |
Reimplemented from BaseGraph< NodeIndexType, ArcIndexType, false >.