示例#1
0
 public Form1()
 {
     InitializeComponent();
     result = new GaSPointEdgeSet();
     testGuibasAndStolfi(n);
     testChews(n);
 }
示例#2
0
 private void testGuibasAndStolfi(int n)
 {
     Random r = new Random();
     points = new List<C2DPoint>(n);
     for (int i = 0; i < n; i++)
     {
         points.Add(new C2DPoint(r.Next(maxSize), r.Next(maxSize)));
     }
     GuibasAndStolfi GaS =  new GuibasAndStolfi(points);
     result = GaS.Run();
 }