R/parse.graphml.R

Defines functions parse.graphml

Documented in parse.graphml

parse.graphml <- function(file, format = c("standard", "internal"), nodes = c(), use.names = TRUE) {
  if (!requireNamespace("XML", quietly = TRUE)) message("Package 'XML' is required for importing GraphML files.")
  else {
    format <- match.arg(format)
    res <- switch(format, standard = parse.graphml.standard(file, nodes, use.names),
      internal = parse.graphml.internal(file, nodes, use.names),
      stop(paste("Unknown file format:", format)))
    return(res)
  }
}

Try the causaleffect package in your browser

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

causaleffect documentation built on July 14, 2022, 5:07 p.m.