private void EdgeDelete_Click(object sender, EventArgs e) { EdgeForm edgeForm = new EdgeForm(graph.Count - 1); if (edgeForm.ShowDialog() == DialogResult.OK) { graph.Disconnect(edgeForm.tuple.Item1, edgeForm.tuple.Item2); } }