构造函数修饰符,用于删除环边
参见
构造函数修饰符(及相关函数)make_()
, sample_()
, simplified()
, with_edge_()
, with_graph_()
, with_vertex_()
, without_attr()
, without_multiples()
示例
# An artificial example
make_(full_graph(5, loops = TRUE))
#> IGRAPH d4aa77a U--- 5 15 -- Full graph
#> + attr: name (g/c), loops (g/l)
#> + edges from d4aa77a:
#> [1] 1--1 1--2 1--3 1--4 1--5 2--2 2--3 2--4 2--5 3--3 3--4 3--5 4--4 4--5 5--5
make_(full_graph(5, loops = TRUE), without_loops())
#> IGRAPH c9cf49d U--- 5 10 -- Full graph
#> + attr: name (g/c), loops (g/l)
#> + edges from c9cf49d:
#> [1] 1--2 1--3 1--4 1--5 2--3 2--4 2--5 3--4 3--5 4--5