pathway_to_sf: Create an sf object from a konigsberg path

Description Usage Arguments Value

View source: R/sf.R

Description

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

Usage

1
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.


dSHARP-CMU/konigsbergr documentation built on Sept. 11, 2019, 3:55 p.m.