Finds the edges present in the first tree but not in the second

distinct_edges(dend, dend2, ...)

Source

A dendrogram implementation for distinct.edges from the distory package

Arguments

dend

a dendrogram to find unique edges in

dend2

a dendrogram to compare with

...

Ignored.

Value

A numeric vector of edge ids for the first tree (dend) that are not present in the second tree (dend2).

See also

distinct_edges, highlight_distinct_edges, dist.dendlist, tanglegram distinct.edges

Examples


x <- 1:5 %>%
  dist() %>%
  hclust() %>%
  as.dendrogram()
y <- set(x, "labels", 5:1)
distinct_edges(x, y)
#> [1] 5 7
distinct_edges(y, x)
#> [1] 2 5
dend_diff(x, y)

# tanglegram(x, y)