A procedure in which the lymph nodes closest to the primary tumor are removed and checked for the presence of cancer cells.