Description Usage Arguments Value Examples
View source: R/saviUserFunctions.R
Adds the vertex attribute "group" to each vertex in an igraph randomly.
1 | addRandomGroups(g, numOfVertexGroups)
|
g |
The igraph to add vertex groups to. |
numOfVertexGroups |
The desired number of vertex groups for the graph. It is required that this number be greater than 1 or the function runSavi will throw an error. It is recommended that the number be less than the number of verticies in the graph. |
The given igraph with each vertex in a random group.
1 | addRandomGroups(g,6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.