Generates an sf collection of line strings representing the pathway taken over the map.

pathway_to_sf(graph, pathway)

Arguments

graph

A konigsberg_graph

pathway

A konigsberg_pathway resulting from cross_all_bridges()

Value

A list with two elements: - pathway An sf data frame with LINESTRING features representing the pathway - terminals An sf data frame with two POINT features representing the start and end nodes of the path.