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
}

Try the SANTA package in your browser

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

SANTA documentation built on Oct. 31, 2019, 3:21 a.m.