| walk_scenario_close | R Documentation |
Creates an independent copy of a walkable street network with specified street segments (edges) or junctions (nodes) removed (simulating street cuts, construction, or pedestrianization). Reconstructs Compressed Sparse Row topology and component connectivity using compiled Rust.
walk_scenario_close(
network,
edge_indices = NULL,
node_indices = NULL,
name = "scenario_closure"
)
network |
A |
edge_indices |
Integer vector of edge row indices to remove (1-indexed). |
node_indices |
Optional integer vector of node indices whose attached edges will be removed. |
name |
Descriptive character label for this intervention scenario. |
A new walk_network S3 object representing the modified scenario, with
metadata storing the closed edges.
data(streets_cusco)
net <- walk_build_network(streets_cusco, verbose = FALSE)
cierre <- walk_scenario_close(net, edge_indices = c(5, 12), name = "Peatonalizacion Central")
print(cierre)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.