remove_duplicates: Remove duplicate graphs from a list.

Description Usage Arguments Value

View source: R/propose.R

Description

Using canonise_graph to calculate unique characteristic logical vector for each graph in a given list of graphs, then sorts the list according to this attribute and remove repeated graphs. Leaf names count so that graphs with permuted leaves are considered different. Also organises similar graphs next to each other if organise is TRUE, but this is extremely slow.

Usage

1
remove_duplicates(graph_list, organise = FALSE, return_piles = FALSE)

Arguments

graph_list

A list of graphs with the same leaf set.

organise

If TRUE also organises isomorphic graphs (now disregarding leaf names) next to each other.

return_piles

If TRUE and organise is also TRUE, the output will be a list of lists of isomorphic graphs instead of one big list.

Value

A list of graphs that are all different (or a list of lists of graphs if both organise and return_piles are TRUE).


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