Food affects the mind. For the practice of any kind of yoga, vegetarianism is absolutely necessary since it makes the mind more pure and harmonious.