@SuppressWarnings("unchecked")
List<CyNode> nodes = network.nodesList();
CyAttributes nodeAttributes = Cytoscape.getNodeAttributes();
for (CyNode node : nodes){
NodeView nodeView = view.getNodeView(node);
// Test if reaction or species node
String nodeId = node.getIdentifier();
String nodeType = (String) nodeAttributes.getAttribute(nodeId, CySBMLConstants.ATT_TYPE);
if (nodeType!=null){
if (nodeType.equals(CySBMLConstants.NODETYPE_REACTION) || nodeType.equals(CySBMLConstants.NODETYPE_SPECIES)){
double xpos = nodeView.getXPosition();
double ypos = nodeView.getYPosition();
double zpos = 0.0;
double height = nodeView.getHeight();
double width = nodeView.getWidth();
double depth = 0.0;
Dimensions dim = new Dimensions(width, height, depth, level, version);
Point point = new Point(xpos, ypos, zpos, level, version);
BoundingBox box = new BoundingBox();