graph.getBBox(cells[, opt])

Returns the bounding box that surrounds all the given cells. Links are ignored. An example:

var bbox = graph.getBBox(graph.getElements());
// { x: Number, y: Number, width: Number, height: Number }