sanitize: Check the validity of a graph data structure

View source: R/package.R

sanitizeR Documentation

Check the validity of a graph data structure

Description

This is mainly for internal checks, but occasionally it might be useful externally.

Usage

sanitize(x, ...)

Arguments

x

Graph.

...

Extra arguments are curently ignored.

Examples

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))

simplegraph documentation built on Aug. 31, 2023, 9:07 a.m.