validCyWin | R Documentation |
Checks all the slots of the object, printing error messages as needed, returning TRUE or FALSE. In particular, RCytoscape imposes some requirements on graphs, including the use of an 'edgeType' edge attribute, and a call to initNodeAttribute and initEdgeAttribute for every attribute. These requirements are checked here.
validCyWin(obj)
obj |
An instance of the CytoscapeWindow class |
TRUE or FALSE. Error messages are written to stderr.
Paul Shannon
g <- new ('graphNEL', edgemode='directed') cw <- new.CytoscapeWindow ('test validCyWin', graph=g) validCyWin (cw) # should see warning about absence of the privileged edge attribute 'edgeType'; returns FALSE