network.components {ElectroGraph}R Documentation

network.components

Description

Given a sociomatrix, determine the membership of connected components.

Usage

network.components (sociomatrix, minimum.relative.strength.for.tie = 1e-08)

Arguments

sociomatrix An n-by-n sociomatrix, where tie strengths indicate inverse distance.
minimum.relative.strength.for.tie If a tie value is below this, the tie is omitted from the analysis.

Value

A list containing the following items:

components A list whose members are vectors of nodes within each connected component.
component.vector The component in which each node is located.

Note

This function is called automatically during the creation of an ElectroGraph object.

Author(s)

Andrew C. Thomas <act@acthomas.ca>

Examples

sources <- c(1,2,3,4)
sinks <- c(2,3,1,5)
socio <- make.sociomatrix.from.edges(cbind(sources,sinks),symmetric=TRUE)$sociomatrix

comps <- network.components(socio)


[Package ElectroGraph version 0.2.0 Index]