sf_to_tidygraph: Create a graph from sf object

View source: R/sf_to_tidygraph.R

sf_to_tidygraphR Documentation

Create a graph from sf object

Description

Creates a graph with nodes and edges from sf objects

Usage

sf_to_tidygraph(x, directed = TRUE)

Arguments

x

sf object

directed

logical. TRUE if directed graph. Defaults to TRUE.

Value

tbl_graph (and igraph) object


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