OR-Tools  9.6
RoutingModel::NodeNeighborsByCostClass

Detailed Description

Definition at line 1408 of file routing.h.

Public Member Functions

 NodeNeighborsByCostClass ()=default
 
void ComputeNeighbors (const RoutingModel &routing_model, int num_neighbors)
 Computes num_neighbors neighbors of all nodes for every cost class in routing_model. More...
 
const std::vector< int > & GetNeighborsOfNodeForCostClass (int cost_class, int node_index) const
 Returns the neighbors of the given node for the given cost_class. More...
 

Constructor & Destructor Documentation

◆ NodeNeighborsByCostClass()

Member Function Documentation

◆ ComputeNeighbors()

void ComputeNeighbors ( const RoutingModel routing_model,
int  num_neighbors 
)

Computes num_neighbors neighbors of all nodes for every cost class in routing_model.

Definition at line 743 of file routing.cc.

◆ GetNeighborsOfNodeForCostClass()

const std::vector<int>& GetNeighborsOfNodeForCostClass ( int  cost_class,
int  node_index 
) const
inline

Returns the neighbors of the given node for the given cost_class.

Definition at line 1416 of file routing.h.


The documentation for this class was generated from the following files: