validGraph

Test whether graph object is valid

validGraph is a validating function for a graph object.

Keywords
manip
Usage
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.

See Also

graph-class

Aliases
  • validGraph
Examples
  
  testGraph<-graphNEL()
  testGraph@nodes<-c("node1","node2","node3")
  validGraph(testGraph)

Documentation reproduced from package graph, version 1.50.0, License: Artistic-2.0

Community examples

Looks like there are no examples yet.