R/isEuclidean.R

Defines functions isEuclidean

Documented in isEuclidean

#' @title Check if network is euclidean.
#'
#' @description Check if a \code{Network} object has euclidean coordinates.
#'
#' @template arg_network
#' @return [\code{logical(1)}]
#' @export
isEuclidean = function(x) {
  return(x$edge.weight.type %in% c("EUC_2D", "EUC_3D"))
}
jakobbossek/salesperson documentation built on Dec. 11, 2021, 4:54 a.m.