powered by
Returns the input graphs, with the diagonal entries removed/replaced as indicated.
diag.remove(dat, remove.val=NA)
The updated graphs.
one or more graphs.
the value with which to replace the existing diagonals
Carter T. Butts buttsc@uci.edu
diag.remove is simply a convenient way to apply diag to an entire collection of adjacency matrices/network objects at once.
diag.remove
diag
network
diag, upper.tri.remove, lower.tri.remove
upper.tri.remove
lower.tri.remove
#Generate a random graph stack g<-rgraph(3,5) #Remove the diagonals g<-diag.remove(g)
Run the code above in your browser using DataLab