R: Return list of edges of all simple paths
I am trying to obtain edge lists of paths between two nodes using tidygraph. Here is an example demo <- tbl_graph(nodes = tibble(name = c("A", "B", "C", "D")), edges = tribble(~from, ~to,~id, "B", "A", "1", "D", "C", "2", "A", "D", "3", "A", "C", "4"), node_key = "name") I used all_simple_paths from igraph package to obtain… Read More R: Return list of edges of all simple paths