R/getNumberOfNodes.R

Defines functions getNumberOfNodes

Documented in getNumberOfNodes

#' Returns number of nodes of a network.
#'
#' @template arg_network
#' @return [\code{integer(1)}]
#'   Number of nodes of the network.
#' @export
getNumberOfNodes = function(x) {
  assertClass(x, "Network")
  nrow(x$coordinates)
}

Try the netgen package in your browser

Any scripts or data that you put into this service are public.

netgen documentation built on Jan. 9, 2020, 1:07 a.m.