创建一个完整图
参见
其他确定性构造器:graph_from_atlas()
, graph_from_edgelist()
, graph_from_literal()
, make_()
, make_chordal_ring()
, make_empty_graph()
, make_full_citation_graph()
, make_graph()
, make_lattice()
, make_ring()
, make_star()
, make_tree()
示例
make_full_graph(5)
#> IGRAPH c53efca U--- 5 10 -- Full graph
#> + attr: name (g/c), loops (g/l)
#> + edges from c53efca:
#> [1] 1--2 1--3 1--4 1--5 2--3 2--4 2--5 3--4 3--5 4--5
print_all(make_full_graph(4, directed = TRUE))
#> IGRAPH 82d3295 D--- 4 12 -- Full graph
#> + attr: name (g/c), loops (g/l)
#> + graph attributes:
#> | + name:
#> | [1] "Full graph"
#> | + loops:
#> | [1] FALSE
#> + edges:
#> 1 -> 2 3 4 2 -> 1 3 4 3 -> 1 2 4 4 -> 1 2 3