network.components {ElectroGraph} | R Documentation |
Given a sociomatrix, determine the membership of connected components.
network.components (sociomatrix, minimum.relative.strength.for.tie = 1e-08)
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. |
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. |
This function is called automatically during the creation of an ElectroGraph object.
Andrew C. Thomas <act@acthomas.ca>
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)