from typing import Generator


def get_rel_dict_rows(rel_dict:dict) -> Generator:
    """Converts dict of relationships into a generator of rows that can be passed to
    a csv.DictWriter"""
    return ({'Source':src, 'Target':tar, 'Relationship Type':val} for (src,tar),val in rel_dict.items())