subset_edges_as_sf: Subset a graph based on optimal route

View source: R/subset_edges_as_sf.R

subset_edges_as_sfR Documentation

Subset a graph based on optimal route

Description

Subsets a graph based on optimal routes that can be used to e.g. calculate summary statistics.

Usage

subset_edges_as_sf(graph, epath)

Arguments

graph

tbl_graph object with the network used to calculate the route

epath

igraph.es object containing the route

Value

sf object with a subset of the network based on the route


kjetilhaukas/shortestpath documentation built on April 28, 2022, 12:06 a.m.