This function tests whether a graph satisfies a number of different types of constraints

satisfies_constraints(
  graph,
  nonzero_f4 = NULL,
  admix_constraints = NULL,
  event_order = NULL
)

Arguments

graph

An admixture graph

nonzero_f4

A data frame or matrix with four columns. One row for each f4-statistic which is observed to be significantly non-zero

admix_constraints

A data frame with columns pop, min, max

event_order

A data frame with columns earlier1, earlier2, later1, later2

Value

TRUE if all admixture constraints are satisfied, else FALSE