如果您从 R 中使用 igraph,请使用此选项
| with_edge_ {igraph} | R 文档 |
添加边属性的构造函数修饰符
with_edge_(...)
... |
要添加的属性。它们必须被命名。 |
其他构造函数修饰符: simplified(), with_graph_(), with_vertex_(), without_attr(), without_loops(), without_multiples()
make_(ring(10),
with_edge_(
color = "red",
weight = rep(1:2, 5))) %>%
plot()