sanitize: Check the validity of a graph data structure

Description Usage Arguments Examples

View source: R/package.R

Description

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

Usage

1

Arguments

x

Graph.

...

Extra arguments are curently ignored.

Examples

1
2
3
4
5
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))

MangoTheCat/simplegraph documentation built on May 7, 2019, 2:23 p.m.