A method and mechanism is disclosed for identifying connected shapes and
objects in an electrical design. The entire hierarchical design does not
have to be flattened to perform the operation of identifying connected
objects for a specific object. Instead of unfolding the entire design
hierarchy, only the specific instances of shapes falling within the
geometric bounds of shapes need to be unfolded to perform the search.