According to the Library of Congress, although yams and sweet potatoes are both angiosperms (flowering plants), they are not related botanically.