diag.remove | R Documentation |

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

`diag`

, `upper.tri.remove`

, `lower.tri.remove`

#Generate a random graph stack g<-rgraph(3,5) #Remove the diagonals g<-diag.remove(g)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.