pruneNet {netDx} | R Documentation

## Prune network by retaining strongest edges

### Description

Prune network by retaining strongest edges

### Usage

    pruneNet(net, vertices, pctX = 0.1, useTop = TRUE)

### Arguments

`net` | (data.frame) Network to prune. Columns are: source,target,weight
`vertices` | (char) node names. Should match those in net[,1:2]
`pctX` | (numeric 0 to 1) Fraction of top/bottom edges to retain
`useTop` | (logical) if TRUE prunes to top pctX edges; else prunes to bottom pctX edges

### Value

(data.frame) pruned network. Three columns: AliasA, AliasB, and weight

[Package netDx version 1.1.4 Index]