Ejemplo n.º 1
0
        public Project1Window()
        {
            InitializeComponent();

            model = new GraphModel(10);
            Random rand = new Random();

            for (int i = 0; i < 25; ++i)
            {
                int node1 = rand.Next(0, 10);
                int node2 = rand.Next(0, 10);

                model.AddConnection(node1, node2);
            }

            CreateGraph();
        }