def get_row_index_with_max_edges(d: int) -> int:
    """
    Return the row index of any benchmark CSV file with given dimension.
    The number of nodes considered "inseresting" are:
    - 14
    - 16
    - 22
    - 52
    - 202
    - 1000

    :param d: graph dimension in term nodes
    :return: index of line with given graph dimension
    """

    # these values correspond to the (line - 2) of the CSV line
    obj = {
        14: 1,
        16: 11,
        22: 12,
        52: 0,
        202: 6,
        1000: 4,
    }

    return obj[d]