private void relax(Integer node){
  double timeNow=times.get(node);
  int to;
  double timeTo;
  for (  ScheduleEntry se : oracle.getConnected(node,timeNow)) {
    to=se.getTo();
    if (visited.contains(to)) {
      continue;
    }
    timeTo=se.getTime() + se.getDuration();
    if (timeTo < times.get(to)) {
      prevHops.put(to,se);
      setTime(to,timeTo);
    }
  }
}

private void relax ( Integer node ) { double timeNow = times . get ( node ) ; int to ; double timeTo ; for ( ScheduleEntry se : oracle . getConnected ( node , timeNow ) ) { to = se . getTo ( ) ; if ( visited . contains ( to ) ) { continue ; } timeTo = se . getTime ( ) + se . getDuration ( ) ; if ( timeTo < times . get ( to ) ) { prevHops . put ( to , se ) ; setTime ( to , timeTo ) ; } } }
relaxes the neighbors of a node ( updates the shortest distances ) .
