add.attribute | R Documentation |
network
or graph
objectFunction to set a vertex or edge attribute of a network
or graph
object
add.attribute(x, where = c("edge", "vertex"), attr_name, value, which = NULL)
x |
The representation of the network as a |
where |
What network element does the attribute refer to. Either |
attr_name |
Name of the attribute to set |
value |
of the attribute to set |
which |
A subset of elements on which the attribute should be applied. Defaults to all the vertexes/nodes. |
A network
or graph
object with the desired attribute
Telarico, Fabio Ashtar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.