reachability {sna}R Documentation

Find the Reachability Matrix of a Graph

Description

reachability takes one or more (possibly directed) graphs as input, producing the associated reachability matrices.

Usage

reachability(dat, geodist.precomp=NULL)

Arguments

dat

one or more graphs (directed or otherwise).

geodist.precomp

optionally, a precomputed geodist object.

Details

For a digraph G=(V,E) with vertices i and j, let P_ij represent a directed ij path. Then the graph

R = ( V(G), { (i,j): i,j in V(G), P_ij in G } )

is said to be the reachability graph of G, and the adjacency matrix of R is said to be G's reachability matrix. (Note that when G is undirected, we simply take each undirected edge to be bidirectional.) Vertices which are adjacent in the reachability graph are connected by one or more directed paths in the original graph; thus, structural equivalence classes in the reachability graph are synonymous with strongly connected components in the original structure.

Bear in mind that – as with all matters involving connectedness – reachability is strongly related to size and density. Since, for any given density, almost all structures of sufficiently large size are connected, reachability graphs associated with large structures will generally be complete. Measures based on the reachability graph, then, will tend to become degenerate in the large |V(G)| limit (assuming constant positive density).

Value

A reachability matrix

Author(s)

Carter T. Butts buttsc@uci.edu

References

Wasserman, S., and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.

See Also

geodist

Examples

#Find the reachability matrix for a sparse random graph
g<-rgraph(10,tprob=0.15)
rg<-reachability(g)
g  #Compare the two structures
rg

#Compare to the output of geodist
all(rg==(geodist(g)$counts>0))

[Package sna version 2.2-0 Index]