예제 #1
0
 public NodoUsuario()
 {
     lstJuegos    = new Juegos();
     lstContactos = new ArbolAVL();
     izquierda    = null;
     derecha      = null;
     altura       = 0;
 }
예제 #2
0
 public NodoUsuario(ref Usuario info)
 {
     lstJuegos        = new Juegos();
     lstContactos     = new ArbolAVL();
     this.informacion = info;
     izquierda        = null;
     derecha          = null;
     altura           = 0;
 }
예제 #3
0
        public void generarGrafoAVL(ref ArbolAVL arbol)
        {
            string acum     = "";
            string grafo    = "digraph G{\n";
            string cabecera = "node [shape = record,height=.1];\n";

            arbol.preOrden(ref arbol.raiz, ref acum, ref cabecera);
            grafo += cabecera + acum + "\n}\n";
            const string f = "C:\\GrafoEDD\\AVL.dot";
            StreamWriter w = new StreamWriter(f);

            w.WriteLine(grafo);
            w.Close();
            generarImagen("C:\\GrafoEDD\\AVL.dot", "C:\\GrafoEDD\\AVL.png");
        }