walk_scenario_betweenness: Simulate Scenario Closures and Evaluate Betweenness...

walk_scenario_betweennessR Documentation

Simulate Scenario Closures and Evaluate Betweenness Re-routing

Description

Simulates the pedestrianization or physical closure of selected street segments and calculates the redistribution of shortest-path betweenness centrality across the remaining network.

Usage

walk_scenario_betweenness(
  network,
  closed_edges = NULL,
  snap_tolerance_m = 0,
  radius_m = NULL,
  verbose = TRUE
)

Arguments

network

A walk_network object.

closed_edges

Integer vector of edge row indices to remove.

snap_tolerance_m

Snapping tolerance in meters for network repair. Default is 0.0.

radius_m

Optional metric search cutoff in meters.

verbose

Logical.

Value

A walk_scenario_betweenness S3 object containing comparison metrics, augmented edges with delta betweenness, and top diverted streets.

Examples

if (requireNamespace("igraph", quietly = TRUE)) {
  data(streets_cusco)
  net <- walk_build_network(streets_cusco, verbose = FALSE)
  sim <- walk_scenario_betweenness(net, closed_edges = c(5, 10))
  print(sim)
}

walkability documentation built on Nov. 17, 2026, 5:09 p.m.