powered by
Returns the input graphs, with the diagonal entries removed/replaced as indicated.
diag.remove(dat, remove.val=NA)
one or more graphs.
the value with which to replace the existing diagonals
The updated graphs.
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
# NOT RUN { #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