tree_in_graph: Test if a tree is part of a graph

tree_in_graphR Documentation

Test if a tree is part of a graph

Description

This function tests whether a tree is part of a graph. This is useful for testing whether a Y-chromosome tree is consistent with an autosomal admixture graph. Leaf node names matter, but internal node names are ignored.

Usage

tree_in_graph(tree, graph)

Arguments

tree

An admixture graph without admixture event

graph

An admixture graph

Value

TRUE if all admixture constraints are satisfied, else FALSE ## Not run: tree = graph_splittrees(example_igraph) tree_in_graph(tree, example_igraph) ## End(Not run)


uqrmaie1/admixtools documentation built on April 25, 2024, 11:30 a.m.