Description Usage Arguments Details Value
View source: R/shuffle_vertices.R
Vertices are randomly sampled without replacement to generate a shuffled version of the input.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | shuffle_vertices(x)
## S3 method for class 'matrix'
shuffle_vertices(x)
## S3 method for class 'igraph'
shuffle_vertices(g)
unshuffle_vertices(x)
## S3 method for class 'matrix'
unshuffle_vertices(x)
## S3 method for class 'igraph'
unshuffle_vertices(g)
|
x |
An adjacency |
g |
An |
The index used to shuffle the vertices is stored as an attribute,
which is referenced by the unshuffle_vertices
function to get back
to the original order.
A shuffled version of the input
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.