/** * Function: createVertex * * Creates the vertex to be used in insertVertex. */ function &createVertex($parent, $id = null, $value = null, $x = 0, $y = 0, $width = 1, $height = 1, $style = null) { $geometry = new mxGeometry($x, $y, $width, $height); $vertex = new mxCell($value, $geometry, $style); $vertex->setId($id); $vertex->setVertex(true); return $vertex; }