Use this if you are using igraph from R
with_vertex_ {igraph} | R Documentation |
Constructor modifier to add vertex attributes
with_vertex_(...)
... |
The attributes to add. They must be named. |
Other constructor modifiers:
simplified()
,
with_edge_()
,
with_graph_()
,
without_attr()
,
without_loops()
,
without_multiples()
make_(ring(10),
with_vertex_(
color = "#7fcdbb",
frame.color = "#7fcdbb",
name = LETTERS[1:10])) %>%
plot()