from typing import List


def get_citation_ids(article:dict,direction:str='citations')->List:
    """Get ids for papers cited / citing a paper in our corpus"""
    
    return [c['arxivId'] for c in article[direction]]