R/Network_Measures-Optimal_Path.R

Defines functions best_path

best_path <- function(sociomatrix, source = NULL, target = NULL, p_norm = 1){
  check_input(sociomatrix, path = NULL, source, target, p_norm)
  return(shortest_path(1/sociomatrix,source, target, p_norm)) #shortest path is an internal function
}
davidbuch/sconduct documentation built on Aug. 6, 2019, 10:53 a.m.