powered by
This is mainly for internal checks, but occasionally it might be useful externally.
sanitize(x, ...)
Graph.
Extra arguments are curently ignored.
G <- graph(list(A = c("B", "C"), B = "C", C = "A")) sanitize(G) G <- c(G, list("this is not good" = c(1, 2, 3))) try(sanitize(G))
Run the code above in your browser using DataLab