India has transitioned away from a nonaligned model to one where it has sought to align itself with both sides of a polarized world.