Remove the Diagonals of Adjacency Matrices in a Graph Stack
Returns the input graphs, with the diagonal entries removed/replaced as indicated.
diag.remove(dat, remove.val=NA)
dat |
one or more graphs. |
remove.val |
the value with which to replace the existing diagonals |
diag.remove
is simply a convenient way to apply diag
to an entire collection of adjacency matrices/network
objects at once.
The updated graphs.
Carter T. Butts buttsc@uci.edu
#Generate a random graph stack g<-rgraph(3,5) #Remove the diagonals g<-diag.remove(g)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.