如果您从 R 中使用 igraph,请使用此选项
| without_attr {igraph} | R 文档 |
构造函数修饰符,用于从图中移除所有属性
without_attr()
其他构造函数修饰符:simplified(), with_edge_(), with_graph_(), with_vertex_(), without_loops(), without_multiples()
g1 <- make_ring(10)
g1
g2 <- make_(ring(10), without_attr())
g2