Class RoutingModel.NodeNeighborsByCostClass
java.lang.Object
com.google.ortools.constraintsolver.RoutingModel.NodeNeighborsByCostClass
- Enclosing class:
- RoutingModel
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionNodeNeighborsByCostClass(long cPtr, boolean cMemoryOwn) NodeNeighborsByCostClass(RoutingModel routing_model) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidComputes num_neighbors neighbors of all nodes for every cost class in
 routing_model.voiddelete()protected voidfinalize()static longint[]GetIncomingNeighborsOfNodeForCostClass(int cost_class, int node_index) Returns the incoming neighbors of the given node for the given
 cost_class, i.e. all 'neighbor' indices such that neighbor -> node_index
 is a neighborhood arc for 'cost_class'.int[]GetOutgoingNeighborsOfNodeForCostClass(int cost_class, int node_index) Returns the neighbors that are outgoing from 'node_index', i.e.
 'neighbor' indices such that node_index -> neighbor is a neighborhood
 arc for 'cost_class'.booleanIsNeighborhoodArcForCostClass(int cost_class, long from, long to) Returns true iff arc from_node -> to_node is a neighborhood arc for the
 given cost_class, i.e. iff arc.to_node is an outgoing neighbor of
 arc.from_node for 'cost_class'.static long
- 
Field Details- 
swigCMemOwnprotected transient boolean swigCMemOwn
 
- 
- 
Constructor Details- 
NodeNeighborsByCostClasspublic NodeNeighborsByCostClass(long cPtr, boolean cMemoryOwn) 
- 
NodeNeighborsByCostClass
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalize
- 
deletepublic void delete()
- 
ComputeNeighborsComputes num_neighbors neighbors of all nodes for every cost class in
 routing_model.
- 
GetIncomingNeighborsOfNodeForCostClasspublic int[] GetIncomingNeighborsOfNodeForCostClass(int cost_class, int node_index) Returns the incoming neighbors of the given node for the given
 cost_class, i.e. all 'neighbor' indices such that neighbor -> node_index
 is a neighborhood arc for 'cost_class'.
- 
GetOutgoingNeighborsOfNodeForCostClasspublic int[] GetOutgoingNeighborsOfNodeForCostClass(int cost_class, int node_index) Returns the neighbors that are outgoing from 'node_index', i.e.
 'neighbor' indices such that node_index -> neighbor is a neighborhood
 arc for 'cost_class'.
- 
IsNeighborhoodArcForCostClasspublic boolean IsNeighborhoodArcForCostClass(int cost_class, long from, long to) Returns true iff arc from_node -> to_node is a neighborhood arc for the
 given cost_class, i.e. iff arc.to_node is an outgoing neighbor of
 arc.from_node for 'cost_class'.
 
-