(self, node)
Returns the depth of a node

      :rtype: the depth of the node, the depth of root node is 0
Returns the depth of a node
Returns the depth of a node
def getNodeDepth(self, node):
      """ Returns the depth of a node

      :rtype: the depth of the node, the depth of root node is 0
      """
      if node == self.getRoot():
         return 0
      else:
         return 1 + self.getNodeDepth(node.getParent())
def getNodeDepth ( self , node ) : if node == self . getRoot ( ) : return 0 else : return 1 + self . getNodeDepth ( node . getParent ( ) )