View source: R/addAttributeList.R
addAttributeList | R Documentation |
Add attributes using a list of vectors to an igraph object
addAttributeList(g, attr, l)
g |
an igraph object |
attr |
the name of the attribute |
l |
the list of vectors |
the modified igraph object
library(igraph) g <- barabasi.game(20) g <- set_vertex_attr(g, "name", value=LETTERS[1:20]) g <- addAttributeList(g, "isProt", list(A=TRUE, B=FALSE, C=TRUE, D=TRUE, E=FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.