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/web/views/.
as.graph(loongraph)
loongraph | object of class loongraph |
---|
graph object of class loongraph
See https://www.bioconductor.org/packages/release/bioc/html/graph.html for more information about the graph R package.
if (requireNamespace("graph", quietly = TRUE)) { g <- loongraph(letters[1:4], letters[1:3], letters[2:4], FALSE) g1 <- as.graph(g) }