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)
A network
or graph
object with the desired attribute
The representation of the network as a network
or graph
object
What network element does the attribute refer to. Either edge
/tie
or vertex
/node
.
Name of the attribute to set
of the attribute to set
A subset of elements on which the attribute should be applied. Defaults to all the vertexes/nodes.
Telarico, Fabio Ashtar