Back to Graph Theory Series

Part 27: Graph Applications in Science

September 20, 2026 Wasil Zafar 32 min read

A mathematician counted chemical compounds using trees in 1874 — decades before graph theory was even recognized as its own field. Science and graph theory have been quietly intertwined from nearly the beginning.

Table of Contents

  1. A Bit of History
  2. The Scientific Modeling Lens
  3. Chemistry: Molecular Graphs
  4. Biology: Protein Networks & Phylogenetics
  5. Physics: Percolation & the Ising Model
  6. Real-World Applications
  7. A Reusable Scientific Pattern
  8. Exercises
  9. Conclusion & Next Steps

A Bit of History

Arthur Cayley, the same mathematician whose 1889 tree-counting formula appeared in Part 11, published "On the Mathematical Theory of Isomers" in 1874 — using trees to systematically count the possible structural arrangements of saturated hydrocarbon molecules (alkanes), one of the very first serious scientific applications of graph theory, predating the formal recognition of graph theory as its own mathematical discipline by decades. This chemistry-graph connection has only deepened since: modern cheminformatics represents essentially every molecule as a graph, atoms as vertices and bonds as edges, as a matter of course.

The Scientific Modeling Lens

Graph theory becomes scientifically useful only after a modeling decision: what counts as a vertex, what counts as an edge, and what information belongs on those vertices and edges? The same physical system can produce very different graphs depending on the scientific question. A molecule may be represented by atoms and bonds; a protein system by proteins and experimentally observed interactions; a porous material by pores and passages; a magnetic lattice by sites and nearest-neighbor couplings.

Modeling Lens Structure before algorithm

One mathematical language, three different scientific meanings

Chemistry Biology Physics CCCC vertex = atom edge = chemical bond labels preserve element and bond order vertex = protein or taxon edge/tree = relation interaction evidence and evolution need different models vertex = site / pore edge = coupling / passage random states on the graph can create phase transitions
Graph theory supplies the language; science decides what the symbols mean.

Model first, analyze second

Before applying centrality, shortest paths, machine learning, or percolation thresholds, ask what information the representation preserved and what it threw away. A mathematically correct analysis of the wrong graph can still answer the wrong scientific question.

Chemistry: Molecular Graphs

Representing a molecule as a graph (atoms as vertices, labeled by element; bonds as edges, labeled by bond order) turns chemistry questions into graph-theoretic ones: determining whether two structural descriptions encode the same molecular connectivity is a specialized instance of the graph isomorphism problem from Part 18, and predicting properties from molecular structure is exactly the graph machine learning application previewed in Part 26.

Same molecular formula, different graph

A molecular formula tells you how many atoms of each element are present; it does not tell you how they are connected. Structural isomers make this distinction visible. Both n-butane and isobutane have formula \(C_4H_{10}\), yet their carbon skeletons are non-isomorphic graphs: one is a 4-vertex path, while the other is a 3-leaf star centered at a carbon atom.

Chemistry Intuition isomersisomorphism

Formula counts atoms; the graph records connectivity

n-butane carbon skeleton isobutane carbon skeleton CCCC degree sequence: 2, 2, 1, 1 carbon graph is a path P4 CCCC degree sequence: 3, 1, 1, 1 Same C4H10 formula does not mean the same connectivity.
Hydrogens are omitted here to emphasize the carbon skeleton. The different degree sequences already prove these two carbon graphs are not isomorphic.

Biology: Protein Networks & Phylogenetics

Protein-protein interaction (PPI) networks model proteins as vertices and observed or inferred interactions as edges. The network-science tools from Part 25 can then generate biological hypotheses: dense subgraphs may correspond to molecular complexes or pathways, while a low-degree protein that bridges two modules may have high betweenness and become interesting for follow-up experiments.

Biology Intuition modulesbridge proteins

Dense modules and a structural bridge

Functional module A Functional module B P* high betweenness few direct neighbors, many cross-module paths
A bridge protein can be structurally important without having the highest degree. In real data, this is a hypothesis-generating signal, not automatic proof of biological causality.

Network measurements are evidence, not causality

PPI networks are shaped by experimental coverage, false positives, missing interactions, tissue context, and time. A high-centrality protein may be biologically important, but centrality alone does not establish mechanism. Scientific interpretation still requires domain evidence and experiments.

Phylogenetic trees: observed leaves, inferred history

A phylogenetic tree uses a tree to encode hypotheses about evolutionary relationships. The leaves are typically observed taxa or sequences, while internal branching points represent inferred ancestral splits. A tree may be rooted when evolutionary direction or a common ancestor is specified, or unrooted when only relative relationships are being represented. Branch lengths may encode genetic change, time, or another model-dependent quantity.

Tree Intuition phylogeny != MST

Why a phylogenetic tree is not simply a minimum spanning tree

Phylogenetic tree MST on observed objects ABCD internal nodes can be inferred ancestors ABCD vertices are the observed objects themselves Both are trees, but they optimize and interpret very different things.
An MST connects observed items cheaply under a supplied edge-weight function. Phylogenetic inference seeks an evolutionary tree under biological and statistical assumptions, often introducing internal ancestral nodes that were never observed directly.

Physics: Percolation & the Ising Model

Percolation theory often starts with a fixed underlying graph or lattice and then randomly declares edges (bond percolation) or vertices (site percolation) open. As the open probability \(p\) increases, connected open clusters grow. Near a critical value \(p_c\), the system can change qualitatively from many small clusters to a macroscopic or spanning cluster. This is closely related to the giant-component phenomenon from Part 20, but the underlying random experiment may be different: Erdős–Rényi randomizes which edges exist in a complete potential graph, while classical lattice percolation randomizes states on a fixed geometry.

Percolation Intuition phase transition

From isolated pockets to a spanning cluster

Below threshold Near threshold Above threshold small disconnected clusters clusters begin to merge one cluster spans the system A threshold marks a qualitative change in global connectivity, not one special edge.
Percolation asks whether random local openness produces global connectivity. The exact critical probability depends on the underlying graph or lattice and on the percolation model.

The Ising model: local agreements create global order

The Ising model places a binary spin \(s_v\in\{-1,+1\}\) on each vertex. Neighboring spins interact along graph edges. In one common ferromagnetic form, the energy is

$$H(s)=-J\sum_{\{u,v\}\in E}s_us_v-h\sum_{v\in V}s_v,$$

where \(J>0\) rewards neighboring spins that agree and \(h\) is an external field. At low temperature, configurations that align many neighboring spins receive much more probability; at high temperature, thermal randomness competes with that local preference. The graph determines who interacts with whom, so changing the graph can change the collective behavior.

Ising Intuition local energyglobal phase

Agreement on edges lowers ferromagnetic energy

More aligned More disordered many agreeing neighbor pairs many disagreeing neighbor pairs ++++++++ + - + - - + - + for J > 0, edge agreements are energetically favored temperature can make disagreement common
The graph supplies local interactions; statistical mechanics asks how those local interactions aggregate into global order, disorder, and phase transitions.

Real-World Applications

Case Study

Epidemic Thresholds as a Connectivity Problem

In network epidemic models, an edge may transmit infection only with some effective transmissibility that summarizes contact opportunity and disease biology. Percolation-style reasoning asks whether the set of potentially transmitting contacts contains a giant connected structure. Interventions such as vaccination, isolation, or contact reduction can lower effective transmission or remove susceptible vertices, potentially moving the system from a regime where large outbreaks are structurally possible to one where transmission clusters remain small.

High effective transmission After intervention a large transmitting cluster is possible the network fragments into smaller clusters X
The intervention goal is not merely “fewer edges.” It is to change transmission opportunities enough that large connected transmission structures become unlikely or impossible in the model.
Percolation TheoryEpidemiologyThresholds

A Reusable Pattern Across the Sciences

The subject matter changes dramatically from molecules to proteins to magnetic lattices, but the modeling workflow is surprisingly stable.

Scientific Modeling Workflow
  • Choose
    the objects
    Atoms, proteins, taxa, lattice sites, people.
  • Define
    the relation
    Bond, interaction, ancestry, coupling, transmissible contact.
  • Preserve
    needed metadata
    Labels, weights, directions, timestamps, confidence.
  • Ask
    a graph question
    Isomorphism, clustering, paths, connectivity, thresholds.
  • Interpret
    scientifically
    Translate the graph result back into domain meaning.
  • Check
    model limits
    Ask which physical or biological details the graph ignored.

Memory hook

Vertices are nouns, edges are relationships, and algorithms answer questions about the model. The science enters twice: once when the graph is built, and again when the mathematical answer is interpreted.

Exercises

  1. Draw the carbon skeletons of n-butane and isobutane. Compute their degree sequences and use that invariant to explain immediately why the two skeletons cannot be isomorphic.
  2. Suppose a PPI network contains two dense modules connected through one low-degree protein. Explain why that protein may have high betweenness centrality, and explain why that still does not prove it is biologically causal.
  3. Draw a four-taxon phylogenetic tree with at least one inferred internal ancestor. Then draw an MST on the same four observed taxa and list two semantic differences between the two trees.
  4. Construct a tiny bond-percolation example on a grid or network. Increase the set of open edges in stages and identify when a spanning or giant cluster first appears in your example.
  5. For a 4-cycle Ising graph with \(J>0\) and \(h=0\), compare the edge-interaction contribution to the energy when all four spins agree versus when the spins alternate \(+,-,+,-\).
  6. Challenge: Compare classical bond percolation on a fixed lattice with the giant-component transition in \(G(n,p)\). Identify what is randomized in each model and what “critical threshold” means in both.

Conclusion & Next Steps

From Cayley's isomer-counting trees to molecular graphs, protein modules, phylogenies, percolation, and spin systems, the recurring lesson is not simply that “graphs appear everywhere.” It is that graphs provide a disciplined way to separate objects, relationships, local rules, and global structure. Their power comes from choosing that abstraction carefully, then matching the scientific question to the right graph-theoretic tool. As this main series' final content part, the closing installment turns reflective: what remains open, and how does one continue learning and contributing to this field going forward?

Next in the Series

In Part 28: Current Research Frontiers & Research Skills, the series closes with open problems, how to read and evaluate research papers, and where to go next.