parameters: (cluster, above=1)
docstring: returns an ordered list of all nodes below cluster
docstring_summary: returns an ordered list of all nodes below cluster
docstring_tokens: returns an ordered list of all nodes below cluster
function: def GetNodesDownToCentroids(cluster, above=1):
    """returns an ordered list of all nodes below cluster
  
  
    """
    if hasattr(cluster, '_isCentroid'):
      cluster._aboveCentroid = 0
      above = -1
    else:
      cluster._aboveCentroid = above
    if len(cluster) == 1:
      return [cluster]
    else:
      res = []
      children = cluster.GetChildren()
      children.sort(key=lambda x: len(x), reverse=True)
      #     children.sort(lambda x, y: cmp(len(y), len(x)))
      for child in children:
        res = res + GetNodesDownToCentroids(child, above)
      res = res + [cluster]
      return res
function_tokens: def GetNodesDownToCentroids ( cluster , above = 1 ) : if hasattr ( cluster , '_isCentroid' ) : cluster . _aboveCentroid = 0 above = - 1 else : cluster . _aboveCentroid = above if len ( cluster ) == 1 : return [ cluster ] else : res = [ ] children = cluster . GetChildren ( ) children . sort ( key = lambda x : len ( x ) , reverse = True ) #     children.sort(lambda x, y: cmp(len(y), len(x))) for child in children : res = res + GetNodesDownToCentroids ( child , above ) res = res + [ cluster ] return res