Insert admixture edges into graph

insert_admix_old(
  graph,
  fromnodes,
  tonodes,
  substitute_missing = FALSE,
  allow_below_admix = FALSE
)

Arguments

graph

An admixture graph

fromnodes

List of nodes. New edges will originate above these nodes.

tonodes

List of nodes. New edges will end above these nodes.

substitute_missing

If TRUE, an attempt will be made to insert random other edges if some of the provided edges could not be inserted.

allow_below_admix

Allow insertion of edges which begin or end directly underneath an admixture node

Value

Adxmiture graph with inserted edges