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
)
An admixture graph
A data frame or matrix with four columns. One row for each f4-statistic which is observed to be significantly non-zero
A data frame with columns pop
, min
, max
A data frame with columns earlier1
, earlier2
, later1
, later2
TRUE
if all admixture constraints are satisfied, else FALSE