Пример #1
0
        public void insertarHash()
        {
            TablaHash tablaHash = new TablaHash(43);

            tablaHash.insertarFromABB(ref usuarioABB.raiz);
            g.generarGrafoTablaHash(tablaHash);
        }
Пример #2
0
        public void generarGrafoTablaHash(TablaHash th)
        {
            string acum = "digraph G { \n nodesep=.05; \n rankdir=LR; \n node [shape=record,width=.1,height=.1]; \n";

            th.getAcumGrafo(ref acum);
            acum += "\n } \n";
            const string f = "C:\\GrafoEDD\\TablaHash.dot";
            StreamWriter w = new StreamWriter(f);

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