validGraph {graph} | R Documentation |
validGraph is a validating function for a graph object.
validGraph(object, quietly=FALSE)
object |
a graph object to be tested |
quietly |
TRUE or FALSE indicating whether
output should be printed. |
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.
Elizabeth Whalen
testGraph<-new("graphNEL") testGraph@nodes<-c("node1","node2","node3") testGraph@edgeL<-list(node1=c("node2"),node2=c("node1","node3"), node3=c("node2")) validGraph(testGraph)