prune_graph: Remove small unconnected subnetworks from a network

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Remove small unconnected subnetworks from a network

Usage

1
prune_graph(fortified.edgelist, node.dataframe, min.vert = 1)

Arguments

fortified.edgelist

This dataframe should be a network stored as a "fortified.edgelist" (see geomnet package for details?)

node.dataframe

This dataframe should be one returned by gather_nodes() or a bunch of these concatenated together

min.vert

A number specifiing the minimum number of verticies that can be in any subnetwork within the larger network

Value

Returns a network fit for plotting with geomnet in which small subnetworks with less than the specified number have been removed

Examples

1
#soon

Jtrachsel/funfuns documentation built on Aug. 8, 2021, 7:31 p.m.