addisolates-deprecated {sna} | R Documentation |
Adds n
isolates to the adjacency matrix (or matrices) in dat
. This function has been replaced by add.isolates
, and should no longer be used.
addisolates(dat, n)
dat |
One or more adjacency matrices |
n |
The number of isolates to add |
If dat
contains more than one adjacency matrix, the n
isolates are added to each member of dat
.
The updated graph stack.
Isolate addition is particularly useful when computing structural distances between graphs of different orders; see the above reference for details.
Carter T. Butts buttsc@uci.edu
Butts, C.T., and Carley, K.M. (2001). ``Multivariate Methods for Inter-Structural Analysis.'' CASOS Working Paper, Carnegie Mellon University.
g<-rgraph(10,5) #Produce some random graphs dim(g) #Get the dimensions of g ## Not run: g<-addisolates(g,2) #Add 2 isolates to each graph in g dim(g) #Now examine g g