hclust2igraph {TreeAndLeaf} | R Documentation

## Convert an hclust to an igraph

### Description

Function for converting a hclust object to an igraph.

### Usage

    hclust2igraph(hc)

### Arguments

`hc` | a hclust object.

### Value

An igraph object.

### See Also

`hclust`

### Examples

    hc <- hclust(dist(USArrests), "ave")
    gg <- hclust2igraph(hc)

[Package TreeAndLeaf version 1.0.0 Index]