diag.remove {sna} | R Documentation |
Returns the input graph stack, with the diagonal entries removed/replaced as indicated.
diag.remove(dat, remove.val=NA)
dat |
A graph stack |
remove.val |
The value with which to replace the existing diagonals |
diag.remove
is simply a convenient way to apply diag
to an entire stack of adjacency matrices at once.
The updated graph stack
Carter T. Butts buttsc@uci.edu
diag
, upper.tri.remove
, lower.tri.remove
#Generate a random graph stack g<-rgraph(3,5) #Remove the diagonals g<-diag.remove(g)