Description Usage Arguments Examples
Convert to tidygraph.
1 2 3 4 5 | ## S3 method for class 'SC'
as_tbl_graph(x, ...)
## S3 method for class 'sf'
as_tbl_graph(x, ...)
|
x |
model |
... |
other args |
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.