Edge List of a Spatial Graph
Value
A data frame with integer columns from and to
(column positions, from < to) and a numeric weight.
Examples
ds <- gen_sample_dataset(c(4, 4, 4), 8)
head(graph_edges(spatial_graph(ds$dataset)))
#> from to weight
#> 1 1 2 1
#> 2 2 3 1
#> 3 3 4 1
#> 4 1 5 1
#> 5 2 6 1
#> 6 5 6 1