This function removes any graph vertices that are in components that fall outside of the specified component size range.

applyComponentFilter(g, component_type = "strong", component_range)

Arguments

g

igraph graph object.

component_type

Character string. Use strongly or weakly connected components by specifying "strong" or "weak". Ignored for undirected graphs. Default is "strong".

component_range

Numeric vector. Min and max values or size range of component.

Value

An igraph graph object.