def __graficar(self):
    graph = ''
    bandera = True
    for i in range(len(self.blocks_list)):
        info = self.blocks_list[i].getInfoGraph()
        nodo = ('node' + str(self.blocks_list[i].getIdBlock()))
        color = 'green'
        if (not (i == 0)):
            hashAnterior = self.blocks_list[(i - 1)].getIdHash()
            brokeChain = self.blocks_list[i].verifyBlock(str(hashAnterior))
        else:
            hashActual = self.blocks_list[i].getIdHash()
            brokeChain = self.verifyFirstBlock(hashActual)
        if (not brokeChain):
            self.checkerChain = False
            bandera = False
        if (bandera is False):
            color = 'red'
        if (not (i == (len(self.blocks_list) - 1))):
            nextId = self.blocks_list[(i + 1)].getIdBlock()
            nextNodo = ('node' + str(nextId))
            graph += (nodo + f'''[label="{info}", color="{color}", penwidth=3]
''')
            graph += (((nodo + '->') + nextNodo) + '\n')
        else:
            graph += (nodo + f'''[label="{info}", color="{color}", penwidth=3]
''')
        if (not (i == 0)):
            nodoAnterior = ('node' + str(self.blocks_list[(i - 1)].getIdBlock()))
            if (color == 'green'):
                graph += (((nodo + '->') + nodoAnterior) + '\n')
            graph += (nodoAnterior + f'[color={color}]')
    return graph
def __graficar(self):
    graph = 
    bandera = True
    for i in range(len(self.blocks_list)):
        info = self.blocks_list[i].getInfoGraph()
        nodo = ('node' + str(self.blocks_list[i].getIdBlock()))
        color = 'green'
        if (not (i == 0)):
            hashAnterior = self.blocks_list[(i - 1)].getIdHash()
            brokeChain = self.blocks_list[i].verifyBlock(str(hashAnterior))
        else:
            hashActual = self.blocks_list[i].getIdHash()
            brokeChain = self.verifyFirstBlock(hashActual)
        if (not brokeChain):
            self.checkerChain = False
            bandera = False
        if (bandera is False):
            color = 'red'
        if (not (i == (len(self.blocks_list) - 1))):
            nextId = self.blocks_list[(i + 1)].getIdBlock()
            nextNodo = ('node' + str(nextId))
            graph += (nodo + f'[label="{info}", color="{color}", penwidth=3]
')
            graph += (((nodo + '->') + nextNodo) + '\n')
        else:
            graph += (nodo + f'[label="{info}", color="{color}", penwidth=3]
')
        if (not (i == 0)):
            nodoAnterior = ('node' + str(self.blocks_list[(i - 1)].getIdBlock()))
            if (color == 'green'):
                graph += (((nodo + '->') + nodoAnterior) + '\n')
            graph += (nodoAnterior + f'[color={color}]')
    return graph