The mathematics of connections: shortest paths, optimal tours, spanning trees, and viruses spreading across social graphs. Visualise algorithms one step at a time.
Graphs, paths, flows and spreading processes
Graph theory underpins the modern world — routing packets across the Internet, mapping protein interactions, scheduling airline connections and modelling how information (or disease) spreads through a social network. Here you can interact with the core algorithms step by step.
Core graph theory and network science ideas
Articles and references about graph algorithms
Social networks, epidemic spread, random graphs, and connectivity — visualised
Networks and graph theory simulations model the structure and dynamics of interconnected systems. Network-growth simulations implement preferential attachment (the Barabási–Albert model) and show how hubs emerge naturally in real-world networks like the internet, social platforms, and airline routes. SIR epidemic simulations propagate infections across contact networks, demonstrating why highly-connected hubs are disproportionately important for disease control.
Community detection algorithms partition nodes into clusters using spectral methods and label propagation. Shortest-path visualisers run Dijkstra and BFS on weighted graphs with hundreds of nodes, animating the frontier expansion. These tools model the same graph-theory concepts underlying Google's PageRank, Facebook's friend recommendations, power-grid resilience analysis, and epidemiological contact tracing.
Network theory is one of the most cross-disciplinary sciences of the 21st century. The same mathematical frameworks describe the internet, metabolic networks, power grids, social relationships, and ecological food webs. Graph theory originated with Euler's 1736 solution to the Königsberg bridge problem and has since become essential to algorithm design, epidemiology, neuroscience, and the study of complex systems in virtually every domain.
Topics and algorithms you'll explore in this category
Common questions about this simulation category