canonise_graph: Canonise graph.

Description Usage Arguments Value

View source: R/propose.R

Description

Given a graph builds a unique logical vector depending only on the leaf names and the graph topology (not the inner node names, root position or the input order of edges or inner nodes). Can be used to detect graph isomorphism, that is, to weed out duplicates from a graph list. Only for comparison of graphs with the same leaf set!

Usage

1

Arguments

graph

An admixture graph.

Value

A logical vector coding the parental matrix of a canonised version of the input graph.


mailund/admixture_graph documentation built on May 21, 2019, 11:06 a.m.