R/AsiGraph.R

Defines functions AsiGraph

AsiGraph <- function(
    v, 
    g
) {
    # convert vertex indices to an igraph object
    if (class(v) == "igraph.vs") return(v)
    class(v) <- "igraph.vs"            
    ne <- new.env()
    assign("graph", g, envir = ne)
    attr(v, "env") <- ne
    v
}
Bioconductor-mirror/SANTA documentation built on June 1, 2017, 1:12 a.m.