largest.component: Largest component

View source: R/core identification.R

largest.componentR Documentation

Largest component

Description

Finds the largest component in a network.

Usage

largest.component(graph, cut.off = 1, result = c("graph", "vector"))

Arguments

graph

a igraph network object

cut.off

is the minimum number of weighted affiliation memberships a component member has to have.

result

either a graph with the largest component or a logical vector.

Value

a graph object

Examples

data(den)
den.health   <- has.tags(den, "Health", res = "relations")
graph.health <- elite.network(den.health)
largest.component(graph.health)

antongrau/eliter documentation built on March 2, 2024, 8:05 p.m.