network.components {ElectroGraph}R Documentation

network.components

Description

Given a sociomatrix, determine the membership of connected components.

Usage

network.components (sociomatrix, pseudo.diameter.bridge=2)

Arguments

sociomatrix An n-by-n sociomatrix, where tie strengths indicate inverse distance.
pseudo.diameter.bridge When constructing a pseudo-diameter measurement, this represents the additional distance between components.

Value

A list containing the following items:

components A list whose members are vectors of nodes within each connected component.
diameters The geodesic diameters of each component.
global.pseudo.diameter A sum of all diameters in the set plus the psuedo-diameter bridges required to putatively connect all components.
component.vector The component in which each node is located.
geodesic The full geodesic path length matrix of the system.

Note

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

Author(s)

Andrew C. Thomas <acthomas@fas.harvard.edu>

Examples

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

comps <- network.components(socio)


[Package ElectroGraph version 0.1 Index]