Use this if you are using igraph from R
These functions convert various objects to igraph graphs.
as.igraph(x, ...)
x |
The object to convert. |
... |
Additional arguments. None currently. |
You can use as.igraph
to convert various objects to igraph graphs.
Right now the following objects are supported:
codeigraphHRG
These objects are created by the fit_hrg
and
consensus_tree
functions.
All these functions return an igraph graph.
Gabor Csardi csardi.gabor@gmail.com.
g <- make_full_graph(5) + make_full_graph(5) hrg <- fit_hrg(g) as.igraph(hrg)