View source: R/misc-utilities.R
igraph fnctions that use igraph vertices as arguments can typicall take the vertex object itself (igraph.vs), the vertex id (numeric), or the vertex name (character). This flexibility can lead to unsafe code. The convention in this package is to use the vertex name.
1 | checkVertex(v)
|
v |
Assumed to represent a vertex. This function, returns an error if v is not of the class 'character'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.