/// <summary>
        /// Creates a new vertex.
        /// </summary>
        /// <param name="name">The name of the vertex.</param>
        /// <param name="x">The X-location of the vertex.</param>
        /// <param name="y">The Y-location of the vertex.</param>
        public void CreateVertex(char name, int x, int y)
        {
            DijkstraVertexLabel v = new DijkstraVertexLabel(name, new Point(x, y));

            v.SetReadOnly(true);
            v.BackColor = Color.White;
            this.vertices.Add(v);
            this.panel.Controls.Add(v);
            mapMatrix.EnableVertex(v.GetNumberIndex());
        }
        /// <summary>
        /// Creates a new vertex.
        /// </summary>
        /// <param name="name">The name of the vertex.</param>
        /// <param name="x">The X-location of the vertex.</param>
        /// <param name="y">The Y-location of the vertex.</param>
        public void CreateVertex(string name, int x, int y)
        {
            Vertex v = new Vertex(name, new Point(x, y));

            v.SetSelectable(false);
            v.SetDraggable(false);
            v.BackColor = Color.White;
            this.vertices.Add(v);
            this.panel.Controls.Add(v);
            mapMatrix.EnableVertex(v.GetNumberIndex());
        }
        /// <summary>
        /// Creates a new vertex control on the panel.
        /// </summary>
        /// <param name="name">The name of the vertex.</param>
        /// <param name="x">The X location of the vertex.</param>
        /// <param name="y">The Y location of the vertex.</param>
        /// <returns></returns>
        private Vertex CreateVertex(string name, int x, int y)
        {
            Vertex v = new Vertex(name, new Point(x, y));

            v.MouseDown        += new System.Windows.Forms.MouseEventHandler(this.Vertex_MouseDown_TagState);
            v.MouseDown        += new System.Windows.Forms.MouseEventHandler(this.Vertex_MouseDown_Disselect);
            v.MouseDown        += new System.Windows.Forms.MouseEventHandler(this.Vertex_MouseDown_DrawEdge);
            v.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.Vertex_MouseDoubleClick);
            v.MouseMove        += new System.Windows.Forms.MouseEventHandler(this.Vertex_MouseMove_ResetBoard);
            v.KeyPress         += new System.Windows.Forms.KeyPressEventHandler(this.Vertex_KeyPress_Delete);
            this.panelSketchBoard.Controls.Add(v);
            mapMatrix.EnableVertex(v.GetNumberIndex());
            mapList.EnableVertex(v.GetNumberIndex());
            return(v);
        }