Use an alternative approach to the bounds consistency issue.
Use an alternative approach to the bounds consistency issue.

- Remove `takesUpSpace()` check from `updateCompoundBounds()` completely.  This removes the expense of doing the filter, and it should have the same net effect if `boundingBox()` omits zero-area elements.
- Make the `displayed` flag in `boundingBox()` check only the `display` property.  For an edge, also check the connected nodes to be consistent with `takesUpSpace()`.  This avoids infinite recursion for compound graphs.  A compound graph would otherwise call `updateCompoundBound()`, `boundingBox()`, `width()`, `updateCompoundBounds()`, ...
- Remove the unused `updated` array for `updateCompoundBounds()`.

Ref : Bounds calculation is inconsistent re. zero-area (or hidden) elements #2472

cytoscape/cytoscape.js,cytoscape/cytoscape.js