Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

            Vertice jose = new Vertice("Jose");

            Vertice pepe = new Vertice("Pepe");

            Vertice johor = new Vertice("Johor");



            Vertice david = new Vertice("David");

            Vertice loui = new Vertice("Loui");

            Vertice roman = new Vertice("Roman");



            jose.AgregarPreferencia(new List <Vertice> {
                roman, david, loui
            });

            pepe.AgregarPreferencia(new List <Vertice> {
                roman, loui, david
            });

            johor.AgregarPreferencia(new List <Vertice> {
                roman, david, loui
            });



            david.AgregarPreferencia(new List <Vertice> {
                jose, johor, pepe
            });

            loui.AgregarPreferencia(new List <Vertice> {
                pepe, jose, johor
            });

            roman.AgregarPreferencia(new List <Vertice> {
                pepe, jose, johor
            });



            Grafo.GetGrafo().hombres = new List <Vertice> {
                jose, pepe, johor
            };

            Grafo.GetGrafo().mujeres = new List <Vertice> {
                loui, david, roman
            };



            Grafo.GetGrafo().DibujarVertices();



            //Grafo.GetGrafo().EnviarSolicitudes();
        }