as_tbl_graph: Convert to tidygraph.

Description Usage Arguments Examples

Description

Convert to tidygraph.

Usage

1
2
3
4
5
## S3 method for class 'SC'
as_tbl_graph(x, ...)

## S3 method for class 'sf'
as_tbl_graph(x, ...)

Arguments

x

model

...

other args

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(tidygraph)
library(scgraph)
data("minimal_mesh", package = "silicate")
as_tbl_graph(minimal_mesh)
library(silicate)  
umodel <- SC(as_tbl_graph(minimal_mesh))
#gibble.PATH <- function(x, ...) {
#inner_join(x[["path"]], x[["path_link_vertex"]] %>% group_by(path) %>% summarize(nrow = n()) ) %>%
#  dplyr::mutate(ncol = 2, type = "MULTILINESTRING")
#}
#library(gibble)
#geomap <- gibble(prim %>% PATH())
#silicate:::build_sf()
## some kind of round trip

hypertidy/scgraph documentation built on May 17, 2019, 12:13 p.m.