这些函数将各种对象转换为 igraph 图。
详细信息
您可以使用 as.igraph()
将各种对象转换为 igraph 图。目前支持以下对象
codeigraphHRG 这些对象由
fit_hrg()
和consensus_tree()
函数创建。
作者
Gabor Csardi csardi.gabor@gmail.com.
示例
g <- make_full_graph(5) + make_full_graph(5)
hrg <- fit_hrg(g)
as.igraph(hrg)
#> IGRAPH e8958be DN-- 19 18 -- Fitted HRG
#> + attr: name (g/c), name (v/c), prob (v/n)
#> + edges from e8958be (vertex names):
#> [1] g1->g4 g2->g6 g3->g9 g4->g5 g5->g3 g6->6 g7->7 g8->8 g9->1 g1->g2
#> [11] g2->g7 g3->2 g4->3 g5->5 g6->9 g7->g8 g8->10 g9->4