'Checks the density of links within a node, if there is a high
link to text ratio, then the text is less likely to be relevant'

def is_highlink_density(self, e):

    links = self.parser.getElementsByTag(e, tag='a')
    if (not links):
        return False
    text = self.parser.getText(e)
    words = [word for word in text.split() if word.isalnum()]
    if (not words):
        return True
    words_number = float(len(words))
    sb = []
    for link in links:
        sb.append(self.parser.getText(link))
    link_text = ''.join(sb)
    link_words = link_text.split()
    num_link_words = float(len(link_words))
    num_links = float(len(links))
    link_divisor = float((num_link_words / words_number))
    score = float((link_divisor * num_links))
    if (score >= 1.0):
        return True
    return False
