![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
#include <graph.h>
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 |
| IntegerRange< ArcIndexType > | OutgoingArcs (NodeIndexType node) const |
| IntegerRange< ArcIndexType > | OutgoingArcsStartingFrom (NodeIndexType node, ArcIndexType from) const |
| absl::Span< const NodeIndexType > | 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 (std::vector< ArcIndexType > *permutation) final |
| void | Build () |
| bool | IsBuilt () const final |
| template<class ArcContainer> | |
| StaticGraph< NodeIndexType, ArcIndexType > | FromArcs (NodeIndexType num_nodes, const ArcContainer &arcs) |
| bool | IsArcValid (ArcIndexType arc) const |
| Public Member Functions inherited from util::BaseGraph< StaticGraph< int32_t, int32_t >, int32_t, int32_t, false > | |
| BaseGraph () | |
| BaseGraph & | operator= (const BaseGraph &)=default |
| virtual | ~BaseGraph ()=default |
| int32_t | num_nodes () const |
| int32_t | size () const |
| int32_t | num_arcs () const |
| IntegerRange< NodeIndex > | AllNodes () const |
| IntegerRange< ArcIndex > | AllForwardArcs () const |
| bool | IsNodeValid (int32_t node) const |
| bool | IsArcValid (int32_t arc) const |
| int32_t | node_capacity () const |
| int32_t | arc_capacity () const |
| virtual void | ReserveNodes (int32_t bound) |
| virtual void | ReserveArcs (int32_t bound) |
| void | Reserve (int32_t node_capacity, int32_t arc_capacity) |
| void | FreezeCapacities () |
| virtual void | Build (std::vector< int32_t > *permutation) |
Static Public Member Functions | |
| template<class ArcContainer> | |
| static StaticGraph | FromArcs (NodeIndexType num_nodes, const ArcContainer &arcs) |
Additional Inherited Members | |
| Public Types inherited from util::BaseGraph< StaticGraph< int32_t, int32_t >, int32_t, int32_t, false > | |
| typedef int32_t | NodeIndex |
| typedef int32_t | ArcIndex |
| Static Public Attributes inherited from util::BaseGraph< StaticGraph< int32_t, int32_t >, int32_t, int32_t, false > | |
| static constexpr bool | kHasNegativeReverseArcs |
| static constexpr int32_t | kNilNode |
| static constexpr int32_t | kNilArc |
| Protected Member Functions inherited from util::BaseGraph< StaticGraph< int32_t, int32_t >, int32_t, int32_t, false > | |
| void | ComputeCumulativeSum (internal::Vector< int32_t, int32_t > *v) |
| void | BuildStartAndForwardHead (internal::SVector< int32_t, int32_t > *head, internal::Vector< int32_t, int32_t > *start, std::vector< int32_t > *permutation) |
| Protected Attributes inherited from util::BaseGraph< StaticGraph< int32_t, int32_t >, int32_t, int32_t, false > | |
| int32_t | num_nodes_ |
| int32_t | node_capacity_ |
| int32_t | num_arcs_ |
| int32_t | arc_capacity_ |
| bool | const_capacities_ |
|
inline |
|
inline |
| ArcIndexType util::StaticGraph< NodeIndexType, ArcIndexType >::AddArc | ( | NodeIndexType | tail, |
| NodeIndexType | head ) |
| void util::StaticGraph< NodeIndexType, ArcIndexType >::AddNode | ( | NodeIndexType | node | ) |
|
inline |
|
final |
| StaticGraph< NodeIndexType, ArcIndexType > util::StaticGraph< NodeIndexType, ArcIndexType >::FromArcs | ( | NodeIndexType | num_nodes, |
| const ArcContainer & | arcs ) |
|
static |
| NodeIndexType util::StaticGraph< NodeIndexType, ArcIndexType >::Head | ( | ArcIndexType | arc | ) | const |
|
inline |
|
inlinefinalvirtual |
Reimplemented from util::BaseGraph< StaticGraph< int32_t, int32_t >, int32_t, int32_t, false >.
| absl::Span< const NodeIndexType > util::StaticGraph< NodeIndexType, ArcIndexType >::operator[] | ( | NodeIndexType | node | ) | const |
| ArcIndexType util::StaticGraph< NodeIndexType, ArcIndexType >::OutDegree | ( | NodeIndexType | node | ) | const |
|
inline |
|
inline |
|
override |
|
override |
| NodeIndexType util::StaticGraph< NodeIndexType, ArcIndexType >::Tail | ( | ArcIndexType | arc | ) | const |