Loon's native graph class is fairly basic. The graph package (on bioconductor) provides a more powerful alternative to create and work with graphs. Also, many other graph theoretic algorithms such as the complement function and some graph layout and visualization methods are implemented for the graph objects in the RBGL and Rgraphviz R packages. For more information on packages that are useful to work with graphs see the gRaphical Models in R CRAN Task View at https://CRAN.R-project.org/view=gR.

as.graph(loongraph)

Arguments

loongraph

object of class loongraph

Value

graph object of class loongraph

Details

See http://www.bioconductor.org/packages/release/bioc/html/graph.html for more information about the graph R package.

Examples

if (requireNamespace("graph", quietly = TRUE)) { g <- loongraph(letters[1:4], letters[1:3], letters[2:4], FALSE) g1 <- as.graph(g) }