Class RoutingModel.NodeNeighborsByCostClass

  • Enclosing class:
    RoutingModel

    public static class RoutingModel.NodeNeighborsByCostClass
    extends java.lang.Object
    • Field Detail

      • swigCMemOwn

        protected transient boolean swigCMemOwn
    • Constructor Detail

      • NodeNeighborsByCostClass

        public NodeNeighborsByCostClass​(long cPtr,
                                        boolean cMemoryOwn)
      • NodeNeighborsByCostClass

        public NodeNeighborsByCostClass()
    • Method Detail

      • finalize

        protected void finalize()
        Overrides:
        finalize in class java.lang.Object
      • delete

        public void delete()
      • ComputeNeighbors

        public void ComputeNeighbors​(RoutingModel routing_model,
                                     int num_neighbors,
                                     boolean add_vehicle_starts_to_neighbors)
        Computes num_neighbors neighbors of all nodes for every cost class in
        routing_model.
      • GetNeighborsOfNodeForCostClass

        public int[] GetNeighborsOfNodeForCostClass​(int cost_class,
                                                    int node_index)
        Returns the neighbors of the given node for the given cost_class.