Every drop has
a way home.
One broken pipeline can leave a neighbourhood without water. Explore the network, trigger disruptions, and find another route before the taps run dry.
Water distribution map
Choose a pipeline or location to inspect it. Blue paths carry water; broken links are shown in red.
Expand the network
Add a new location or connect two existing locations. The graph updates instantly.
Find another way
Use breadth-first search (BFS) to find an available path from the reservoir to a location.
A city network.
One graph.
This simulation represents real-world water infrastructure using vertices and edges. Graph traversal checks which locations remain connected when a pipeline fails.
Each reservoir, facility, tank and neighbourhood is a vertex. Each pipeline is an edge.
Mark an edge as leaking, blocked or under maintenance. The failed edge is excluded from traversal.
Start at the reservoir and visit reachable vertices. Unvisited locations are affected areas.
Search the remaining graph for another path and highlight the route if one exists.