R/hasDepots.R

Defines functions hasDepots

Documented in hasDepots

#' Check if network has depots.
#'
#' @template arg_network
#' @return [\code{logical(1)}]
#' @export
hasDepots = function(x) {
  assertClass(x, "Network")
  !is.null(x$depot.coordinates)
}
jakobbossek/salesperson documentation built on Dec. 11, 2021, 4:54 a.m.