Convert an igraph object to sf lines

igraph2sf(ig_network)

Arguments

ig_network

igraph network

Examples

tree <- create_reversed_tree(15)
tree_sf <- igraph2sf(tree)
plot(tree_sf)