R igraph 手册页

如果您从 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()

[包 igraph 版本 1.3.5 索引]