R/hclust.R

Defines functions as_tbl_graph.hclust

Documented in as_tbl_graph.hclust

#' @describeIn tbl_graph Method for hclust objects
#' @importFrom stats as.dendrogram
#' @export
as_tbl_graph.hclust <- function(x, directed = TRUE, mode = 'out', ...) {
  as_tbl_graph(as.dendrogram(x), directed, mode)
}

Try the tidygraph package in your browser

Any scripts or data that you put into this service are public.

tidygraph documentation built on June 22, 2024, 11:32 a.m.