R/conversion.R

# TODO: Ask Duncan. Is it reasonable to define this conversion in this way?
# The idea is to keep igraph a "soft" dependency

setAs("DependGraph", "igraph", function(from)
{
    if(requireNamespace("igraph", quietly = TRUE)){
        igraph::graph_from_data_frame(from@graph)
    } else stop("Install igraph to use this conversion.")
})

Try the makeParallel package in your browser

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

makeParallel documentation built on May 2, 2019, 9:40 a.m.