Nodes are the vertices in the graph that are shared by "arcs".

sc_node(x, ...)

# S3 method for class 'SC'
sc_node(x, ...)

# S3 method for class 'SC0'
sc_node(x, ...)

# Default S3 method
sc_node(x, ...)

# S3 method for class 'PATH'
sc_node(x, ...)

# S3 method for class 'ARC'
sc_node(x, ...)

Arguments

x

input object

...

arguments for methods

Value

data frame of the nodes

Examples

sc_node(ARC(minimal_mesh))
#> # A tibble: 2 × 1
#>   vertex_
#>   <chr>  
#> 1 qmdYvR 
#> 2 GlXhCG 
sc <- SC(routes)
library(dplyr)
plot(sc)
sc_node(sc) %>% inner_join(sc$vertex) %>% select(x_, y_) %>% points()
#> Joining with `by = join_by(vertex_)`