validGraph: Test whether graph object is valid

Description Usage Arguments Value Author(s) See Also Examples

View source: R/graphNEL.R

Description

validGraph is a validating function for a graph object.

Usage

1
validGraph(object, quietly=FALSE)

Arguments

object

a graph object to be tested

quietly

TRUE or FALSE indicating whether output should be printed.

Value

If the graph object is valid, TRUE is returned otherwise FALSE is returned. If object is not a valid graph and quietly is set to FALSE then descriptions of the problems are printed.

Author(s)

Elizabeth Whalen

See Also

graph-class

Examples

1
2
3
4
  
  testGraph<-graphNEL()
  testGraph@nodes<-c("node1","node2","node3")
  validGraph(testGraph)

vjcitn/graph documentation built on Dec. 23, 2021, 4:06 p.m.