inst/GXL/createGraphExamples.R

gxlFiles <- list.files(pattern="graphExample-[0-9]+\\.gxl\\.gz$")
graphExamples <- list()
i <- 1
for (gf in gxlFiles) {
    con <- gzfile(gf, open="rb")
    graphExamples[[i]] <- graph::fromGXL(con)
    i <- i + 1
    close(con)
}
    

Try the graph package in your browser

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

graph documentation built on Nov. 8, 2020, 6:02 p.m.