def remap_edges(edges: list, mapper: dict) -> list:
    row = [e[0] for e in edges]
    col = [e[1] for e in edges]
    row = list(map((lambda x: mapper[x]), row))
    col = list(map((lambda x: mapper[x]), col))
    return [row, col]
def remap_edges(edges: list, mapper: dict) -> list:
    row = [e[0] for e in edges]
    col = [e[1] for e in edges]
    row = list(map((lambda x: mapper[x]), row))
    col = list(map((lambda x: mapper[x]), col))
    return [row, col]