/** * Function: createRoot * * Creates a new root cell with a default layer (child 0). */ function createRoot() { $root = new mxCell(); $root->insert(new mxCell()); return $root; }