contract_mst: Compute the contraction of the leaves in the minimum spanning...

Description Usage Arguments Details Value Examples

View source: R/contract_mst.R

Description

This function aims to reduce the fringe regions by collapsing the tree leaves on their branches. In this way we have less grouping of fringe regions.

Usage

1
contract_mst(adjl, n_fold = 1)

Arguments

adjl

A list of three elements: degree list, connectivity matrix and weights.

n_fold

Number of links contractions (folds).

Details

For details, please refer to the main documentation of the original campari software http://campari.sourceforge.net/documentation.html.

Value

This function will return an adjacency list modified.

Examples

1
2
adjl <- mst_from_trj(trj = matrix(rnorm(1000), nrow = 100, ncol = 10))
adjl2 <- contract_mst(adjl = adjl)

CampaR1 documentation built on May 30, 2017, 2:51 a.m.