CAIRO — For all the diplomatic dominoes that have fallen across the Middle East in recent days, with ambassadors from different countries flying home as a result of the explosive rift between Saudi Arabia and Iran, the map of allegiances has not significantly altered.

Certainly, several countries offered muscular shows of solidarity to Saudi Arabia after an Iranian mob attacked its embassy in Tehran over the weekend, prompting a crisis that has put the United States in a bind and has threatened to set back the prospects for a resolution to the conflict in Syria.

By Tuesday, Kuwait had recalled its ambassador to Iran, the United Arab Emirates had downgraded its diplomatic relationship, and Bahrain and Sudan had joined Saudi Arabia in severing its relationship with Tehran entirely.

Yet many other Sunni Muslim countries signaled that they intended to take a more measured approach to the argument — sympathizing with Saudi Arabia, a rich and powerful ally, but also determined to avoid getting sucked into a harmful conflict with Iran, a country governed by Shiite clerics, with potentially grave costs.