network.components {ElectroGraph} | R Documentation |
Given a sociomatrix, determine the membership of connected components.
network.components (sociomatrix, pseudo.diameter.bridge=2)
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. |
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. |
This function is called automatically during the creation of an ElectroGraph object.
Andrew C. Thomas <acthomas@fas.harvard.edu>
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)