/// <summary>
        /// Добавление ребра
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddEdge_Button_Click(object sender, EventArgs e)
        {
            ANode_TextBox.Text = ANode_TextBox.Text.Trim('_');
            BNode_TextBox.Text = BNode_TextBox.Text.Trim('_');

            if ((ANode_TextBox.Text != "") && (BNode_TextBox.Text != "") && NodeExist(ANode_TextBox.Text) && NodeExist(BNode_TextBox.Text))
            {
                EdgeErrorInput_Label.Text = "";
                edges.Add(ANode_TextBox.Text + Arrow_Label.Text + BNode_TextBox.Text);
                Edges_DataGridView.Rows.Add(edges[edges.Count - 1]);
                ANode_TextBox.Text = "";
                BNode_TextBox.Text = "";
            }

            else
            {
                EdgeErrorInput_Label.Text = "Неккоректное имя вершины";
                ANode_TextBox.Focus();
                return;
            }

            if ((graph != null) && (graph.Created) && (graph.Visible))
            {
                if (Step_CheckBox.Checked)
                {
                    graph.AddEdgeStep(edges[edges.Count - 1]);
                }
                else
                {
                    graph.AddEdge(edges[edges.Count - 1]);
                }
            }

            ANode_TextBox.Focus();
        }
        private void DeleteAll_Button_Click(object sender, EventArgs e)
        {
            Edges_DataGridView.Rows.Clear();
            edges.Clear();
            ANode_TextBox.Focus();

            if ((graph.Created) && (graph.Visible))
            {
                CreateGraph_Button_Click(sender, e);
            }
        }
 private void Arrow_Label_Click(object sender, EventArgs e)
 {
     //ChangeArrowDirrection();
     ANode_TextBox.Focus();
 }