From 875274ad48f91e28e8f48218a8af58369c30f4a2 Mon Sep 17 00:00:00 2001
From: loic scoth <loic.scoth.etu@univ-lille.fr>
Date: Thu, 15 Feb 2024 11:04:25 +0100
Subject: [PATCH] creation suppr a completer plus tard

---
 src/Node.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/Node.py b/src/Node.py
index 7359c2a..3308034 100644
--- a/src/Node.py
+++ b/src/Node.py
@@ -77,6 +77,19 @@ class Node() :
                     return True, None, None, None
         else :
             return True, None, None, None
+    
+    def suppr(self,value) :
+        """
+        >>> a = Node([12, 42], [Node([3]), Node([25]), Node([50])])
+        >>> a.suppr(11)
+        False
+        """
+        found = self.search(value)
+        if (found) :
+            return None
+        else :
+            return False
+        
         
     def splitNode(self) :
         """
-- 
GitLab