![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
#include <graph.h>
Public Types | |
| typedef NodeIndexType | NodeIndex |
| typedef ArcIndexType | ArcIndex |
Public Member Functions | |
| BaseGraph () | |
| BaseGraph (const BaseGraph &)=default | |
| BaseGraph & | operator= (const BaseGraph &)=default |
| virtual | ~BaseGraph ()=default |
| NodeIndexType | num_nodes () const |
| NodeIndexType | size () 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 |
| virtual void | ReserveNodes (NodeIndexType bound) |
| virtual void | ReserveArcs (ArcIndexType bound) |
| void | Reserve (NodeIndexType node_capacity, ArcIndexType arc_capacity) |
| void | FreezeCapacities () |
| virtual void | Build (std::vector< ArcIndexType > *permutation) |
| void | Build () |
| virtual bool | IsBuilt () const |
Static Public Attributes | |
| static constexpr bool | kHasNegativeReverseArcs = HasNegativeReverseArcs |
| static constexpr NodeIndexType | kNilNode |
| static constexpr ArcIndexType | kNilArc |
Protected Member Functions | |
| void | ComputeCumulativeSum (internal::Vector< NodeIndexType, ArcIndexType > *v) |
| void | BuildStartAndForwardHead (internal::SVector< ArcIndexType, NodeIndexType > *head, internal::Vector< NodeIndexType, ArcIndexType > *start, std::vector< ArcIndexType > *permutation) |
Protected Attributes | |
| NodeIndexType | num_nodes_ |
| NodeIndexType | node_capacity_ |
| ArcIndexType | num_arcs_ |
| ArcIndexType | arc_capacity_ |
| bool | const_capacities_ |
| typedef ArcIndexType util::BaseGraph< Impl, NodeIndexType, ArcIndexType, HasNegativeReverseArcs >::ArcIndex |
| typedef NodeIndexType util::BaseGraph< Impl, NodeIndexType, ArcIndexType, HasNegativeReverseArcs >::NodeIndex |
|
inline |
|
default |
|
virtualdefault |
| IntegerRange< ArcIndexType > util::BaseGraph< Impl, NodeIndexType, ArcIndexType, HasNegativeReverseArcs >::AllForwardArcs | ( | ) | const |
| IntegerRange< NodeIndexType > util::BaseGraph< Impl, NodeIndexType, ArcIndexType, HasNegativeReverseArcs >::AllNodes | ( | ) | const |
| ArcIndexType util::BaseGraph< Impl, NodeIndexType, ArcIndexType, HasNegativeReverseArcs >::arc_capacity | ( | ) | const |
|
inline |
|
inlinevirtual |
Reimplemented in util::ReverseArcStaticGraph< NodeIndex, ArcIndex >.
|
protected |
|
protected |
| void util::BaseGraph< Impl, NodeIndexType, ArcIndexType, HasNegativeReverseArcs >::FreezeCapacities | ( | ) |
|
inline |
|
inlinevirtual |
|
inline |
| NodeIndexType util::BaseGraph< Impl, NodeIndexType, ArcIndexType, HasNegativeReverseArcs >::node_capacity | ( | ) | const |
|
inline |
|
inline |
|
default |
|
inline |
|
inlinevirtual |
Reimplemented in util::ReverseArcListGraph< int, int >, and util::ReverseArcStaticGraph< NodeIndex, ArcIndex >.
|
inlinevirtual |
Reimplemented in util::ReverseArcListGraph< int, int >.
|
inline |
|
protected |
|
protected |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
protected |
|
protected |
|
protected |