Find all valid graphs which result from flipping one admixture edge

graph_flipadmix(graph)

Arguments

graph

Admixture graph in igraph format

Value

A data frame with columns from, to, and graph

Examples

if (FALSE) {
newgraphs = graph_flipadmix(example_igraph)
# now evaluate the new graphs
newgraphs %>%
  rowwise %>%
  mutate(res = list(qpgraph(example_f2_blocks, graph))) %>%
  unnest_wider(res)
}