How does a single graph help in saving the building during an earthquake?