graph.getBBox()
Returns the bounding box (g.Rect) that surrounds all cells in the graph. It returns null if the graph is empty.
null
var bbox = graph.getBBox().inflate(10);