如果您从 R 中使用 igraph,请使用此选项
as.igraph {igraph} | R 文档 |
这些函数将各种对象转换为 igraph 图。
as.igraph(x, ...)
x |
要转换的对象。 |
... |
附加参数。 目前没有。 |
您可以使用 as.igraph
将各种对象转换为 igraph 图。 目前支持以下对象
codeigraphHRG 这些对象由 fit_hrg
和 consensus_tree
函数创建。
所有这些函数都返回一个 igraph 图。
Gabor Csardi csardi.gabor@gmail.com。
g <- make_full_graph(5) + make_full_graph(5)
hrg <- fit_hrg(g)
as.igraph(hrg)