graph_plusone: Find all graphs which result from adding one admixture edge

graph_plusoneR Documentation

Find all graphs which result from adding one admixture edge

Description

Find all graphs which result from adding one admixture edge

Usage

graph_plusone(graph, ntry = Inf)

Arguments

graph

Admixture graph in igraph format

ntry

Specify this to return only a subset of all possible graphs with one more edge

Value

A data frame with columns from, to, and graph

Examples

## Not run: 
newgraphs = graph_plusone(example_igraph)
# now evaluate the new graphs
newgraphs %>%
  rowwise %>%
  mutate(res = list(qpgraph(example_f2_blocks, graph))) %>%
  unnest_wider(res)

## End(Not run)

uqrmaie1/admixtools documentation built on Nov. 3, 2024, 12:56 a.m.