Vegan and vegetarian diets are also linked to lower heart disease risk, a long-term study suggests.