Jurnal Sains Dasar
Vol. 15 No. 2 (2026): Oktober 2026

The Megathrust Code: Graph Representation of Tsunami Affected Areas in DIY Based on Floyd-Warshall Algorithm

Ririn Ria Aryani (Department of Mathematics, Faculty of Science and Technology, Universitas Islam Negeri Sunan Kalijaga Yogyakarta)
Noor Saif Muhammad Mussafi (Department of Mathematics, Faculty of Science and Technology, Universitas Islam Negeri Sunan Kalijaga Yogyakarta)
Humairoh Wahidatul Izzah (Department of Mathematics, Faculty of Science and Technology, Universitas Islam Negeri Sunan Kalijaga Yogyakarta)
Jeisinta Hana Hanifah (Department of Mathematics, Faculty of Science and Technology, Universitas Islam Negeri Sunan Kalijaga Yogyakarta)



Article Info

Publish Date
20 Nov 2026

Abstract

The megathrust earthquake threat along the southern coast of Java, with a potential magnitude approaching M 8.9, has resurfaced in various official statements by experts from the Agency for Meteorology, Climatology, and Geophysics (BMKG) and the National Research and Innovation Agency (BRIN). Daerah Istimewa Yogyakarta (DIY), which lies directly across from the South Java Megathrust segment is particularly vulnerable to significant earthquakes and tsunamis. This vulnerability underscores the need for adaptive and well-planned mitigation strategies. This research develops a graph-based evacuation model by employing the Floyd–Warshall algorithm to identify optimal evacuation locations and strategic routes from high-risk areas. The application of graph theory allows us to represent the relationships among geographical, infrastructural, and demographic elements, enabling a systematic and efficient analysis of evacuation routes. The research involved reviewing literature, collecting data, and designing a graph model. The results of this research are expected to complement existing early warning systems and serve as a decision-support tool to enhance disaster preparedness for coastal communities in the DIY region against tsunami hazards induced by megathrust activity. Moreover, this model contributes to achieving the Sustainable Development Goals (SDGs), particularly Goal 11 which focuses on sustainable cities and resilient human settlements. Keywords: Earthquake, Floyd-Warshall Algorithm, Graph Theory, SDGs, Tsunami

Copyrights © 2026