(self, node)
return height
Returns the height of a node

      .. note:: If the node has no childs, the height will be 0.

      :rtype: the height of the node
Returns the height of a node
Returns the height of a node
def getNodeHeight(self, node):
      """ Returns the height of a node

      .. note:: If the node has no childs, the height will be 0.

      :rtype: the height of the node
      """
      height = 0
      if len(node) <= 0:
         return 0
      for child in node.getChilds():
         h_inner = self.getNodeHeight(child) + 1
         if h_inner > height:
            height = h_inner
      return height
def getNodeHeight ( self , node ) : height = 0 if len ( node ) <= 0 : return 0 for child in node . getChilds ( ) : h_inner = self . getNodeHeight ( child ) + 1 if h_inner > height : height = h_inner return height