def get_linked_constellations(point_to_constellation, points_in_range):
    """Get constellations to which are connected points_in_range."""
    linked_constellations = set()
    for point_in_range in points_in_range:
        constellation = point_to_constellation.get(point_in_range)
        if constellation is not None:
            linked_constellations.add(constellation)
    return linked_constellations