diff --git a/R/scan.R b/R/scan.R index 004bcd38260..c3cd86c8773 100644 --- a/R/scan.R +++ b/R/scan.R @@ -164,7 +164,6 @@ local_scan <- function( ## Check mode argument mode <- igraph_match_arg(mode) - cmode <- switch(mode, out = 1, `in` = 2, all = 3, total = 3) sumweights <- function(g) sum(E(g)$weight)