R/graph.R

Defines functions as.graph.TRACDS as.graph as.igraph.TRACDS as.igraph

Documented in as.graph as.graph.TRACDS as.igraph as.igraph.TRACDS

## igraph coercions
as.igraph <-  function(object)
  UseMethod("as.igraph")

as.igraph.TRACDS <-
  function(object)
    smc_as.igraph(object@tracds_d$mm)


## graph coercions
as.graph <-  function(object)
  UseMethod("as.graph")

as.graph.TRACDS <-  function(object) {
  if (!.installed("graph"))
    stop ("Package graph needed! Please install from Bioconductor.")
  smc_as.graph(object@tracds_d$mm)
}

Try the rEMM package in your browser

Any scripts or data that you put into this service are public.

rEMM documentation built on June 26, 2022, 1:06 a.m.