pruneNet_pctX {netDx} | R Documentation |
Prune network by retaining strongest edges
pruneNet_pctX(net, vertices, pctX = 0.1, useTop = TRUE)
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 |
(data.frame) pruned network. Three columns: AliasA, AliasB, and weight