跳到内容

make_full_citation_graph() 创建一个完整的引用图。这是一个有向图,当且仅当 \(j<i\) 时,存在每个 i->j 边。如果 directed=FALSE,那么该图只是一个完全图。

用法

make_full_citation_graph(n, directed = TRUE)

full_citation_graph(...)

参数

n

顶点的数量。

directed

是否创建有向图。

...

传递给 make_full_citation_graph()

一个 igraph 图。

示例

print_all(make_full_citation_graph(10))
#> IGRAPH 8cbaed9 D--- 10 45 -- Full citation graph
#> + attr: name (g/c)
#> + graph attributes:
#> | + name:
#> |   [1] "Full citation graph"
#> + edges:
#>  1 ->                      2 -> 1                    3 -> 1 2              
#>  4 -> 1 2 3                5 -> 1 2 3 4              6 -> 1 2 3 4 5        
#>  7 -> 1 2 3 4 5 6          8 -> 1 2 3 4 5 6 7        9 -> 1 2 3 4 5 6 7 8  
#> 10 -> 1 2 3 4 5 6 7 8 9