def get_article_links(self, article_id):       
        links = self.f['links'][article_id].strip().split(' ')
        if links[0] != '':
            links = [int(i) for i in links] #convert to integer
        else:
            links = []
        return links
dataset/ETHPy150Open nyu-dl/WebNav/wiki.py/Wiki.get_article_links/original