diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-11-15 08:08:06 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-11-15 08:08:06 -0600 |
commit | c78465010691d45f5e5bfa6a36a96800d30962ac (patch) | |
tree | 93521b0c9788712823937e4c48212bc02f0b04b5 /arbol.py | |
parent | a3097d32c66cbdff04de14481923c7464b0a8a29 (diff) | |
download | javanol-c78465010691d45f5e5bfa6a36a96800d30962ac.tar.gz javanol-c78465010691d45f5e5bfa6a36a96800d30962ac.tar.bz2 javanol-c78465010691d45f5e5bfa6a36a96800d30962ac.zip |
Se elimina código de interfaz y se reorganizan directorios
Diffstat (limited to 'arbol.py')
-rw-r--r-- | arbol.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/arbol.py b/arbol.py deleted file mode 100644 index 7abcbe0..0000000 --- a/arbol.py +++ /dev/null @@ -1,26 +0,0 @@ -class Nodo: - def __init__(self, dato = None): - self.dato = dato - self.hijos = [] - - def print(self, n = 0): - s = ' ' * n + 'Nodo:' + "\n" - s += ' ' * n + "dato = " + str(self.dato) + "\n" - s += ' ' * n + "hijos =\n" - for h in self.hijos: - s += h.print(n + 1) - s += "\n" - return s - - def __str__(self): - return self.print() - - -class Arbol: - def __init__(self, raiz: Nodo = Nodo()): - self.raiz = raiz - - def __str__(self): - if self.raiz: - return str(self.raiz) - return "None" |