*/
public void ungroup(Object[] cells)
{
// Shortcut to the model
GraphModel graphModel = getModel();
GroupModel aGroup;
// If any Cells
if (cells != null && cells.length > 0)
{
// List that Holds the Groups
ArrayList<Object> groups = new ArrayList<Object>();
// List that Holds the Children
ArrayList<Object> children = new ArrayList<Object>();
// Loop Cells
for (int i = 0; i < cells.length; i++)
{
// If Cell is a Group
if (isGroup(cells[i]))
{
aGroup = (GroupModel) cells[i];
if (aGroup.isUngroupable())
{
// Add to List of Groups
groups.add(cells[i]);
// Loop Children of Cell
for (int j = 0; j < graphModel.getChildCount(cells[i]); j++) {