trim_edges: Trim the low-weight edges from a graph

Description Usage Arguments

View source: R/trim.r

Description

Remove edges in a graph whose weights are small. This function is meant to visualize full-connected (or almost fully connected graphs) where many of the edges may be small.

Usage

1
trim_edges(x, k, method = "top_k")

Arguments

x

a subgroup object.

k

parameter for the trim method. Currently, it can be either "top_k", which keeps the edges with the k largest weights or "cutoff" where edges whose weights are less than the cutoff are removed.

method

the method for trimming edges. Current options are the default, "top_k" which retains the edges with the k highest values or "cutoff" which is value a weight must be above to remain in the graph.


presagia-analytics/networkviz documentation built on Oct. 27, 2020, 4:29 a.m.