loon (version 1.3.3)

as.graph: Convert a loongraph object to an object of class graph

Description

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.

Usage

as.graph(loongraph)

Arguments

loongraph

object of class loongraph

Value

graph object of class loongraph

Details

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

Examples

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

Run the code above in your browser using DataCamp Workspace