This function generates edge information from a given triangular object, including the coordinates of the vertices and the from-to relationships between the vertices.
Value
A tibble that contains the edge information, including the from-to relationships and the corresponding x and y coordinates.
Examples
tr1_object <- s_curve_obj$s_curve_umap_model_tr1_object
gen_edges(tri_object = tr1_object)
#> # A tibble: 313 × 6
#> from to x_from y_from x_to y_to
#> <int> <int> <dbl> <dbl> <dbl> <dbl>
#> 1 1 2 0.107 -0.0169 0.189 -0.0169
#> 2 4 5 0.148 0.0546 0.231 0.0546
#> 3 4 13 0.148 0.0546 0.189 0.126
#> 4 12 13 0.107 0.126 0.189 0.126
#> 5 2 3 0.189 -0.0169 0.272 -0.0169
#> 6 12 22 0.107 0.126 0.148 0.198
#> 7 3 5 0.272 -0.0169 0.231 0.0546
#> 8 13 23 0.189 0.126 0.231 0.198
#> 9 13 14 0.189 0.126 0.272 0.126
#> 10 5 14 0.231 0.0546 0.272 0.126
#> # ℹ 303 more rows