Part IV · Chapter 12

Networks That Think

Your brain is a network of neurons; the machines that recognise your voice are networks of simple units. In both, what the system can do depends on how it is wired. This last chapter brings every tool in the book to bear on networks that compute.

Every idea in this book has been a way of looking at the same thing: dots and lines. Degrees and hubs. Paths and distance. Giant components and small worlds. Centrality and communities. Things flowing and cascading. In this final chapter, turn those lenses on the most remarkable networks we know of: the ones that think.

The brain as a network

A human brain contains tens of billions of neurons, each typically connected to thousands of others. Nobody has drawn its full wiring diagram, neuron by neuron. But a much smaller nervous system has been mapped: that of the roundworm C. elegans, whose 302 neurons and their connections were published as a complete wiring diagram in 1986. It was one of the networks Watts and Strogatz examined in 1998, and it turned out to be a small world. The field is moving fast: in 2024 researchers published the complete wiring diagram of an adult fruit fly’s brain, with about 140,000 neurons.

For human brains, researchers usually work at a coarser scale: brain regions as nodes, and bundles of long-range fibres (or regions whose activity rises and falls together) as links. Studies of these networks have repeatedly reported features you now recognise:

One way to read this design is as a trade-off. Long connections are costly to build and run, which favours local wiring. But purely local wiring would make communication between distant regions slow. A few long-range links between hubs buy short paths at modest cost. The network below is a toy built to have these features; it is not a map of a real brain, but you can x-ray it, and other networks from this book, with every tool you have learned.

Interactive 12.1

Network X-ray

Choose a network and a lens. Click a node to remove it (a lesion), or use the buttons, and watch the measurements respond.

Network Lens
The brain-like toy shows the small-world signature: clustering far above a random network with the same degrees, path length close to it. (Comparing with a twin that keeps every node’s degree matters: in small networks, hubs alone create extra triangles.) Remove a few random nodes and efficiency barely moves; remove the hubs that link the modules and the modules start to lose touch with each other. (Community colours are labels, as in Chapter 9, and come from the label-spreading method.)

Efficiency, in the readout, is a measure used in brain-network studies: the average of 1 divided by the distance between every pair of nodes. Nearby pairs count a lot, distant pairs a little, and pairs that cannot reach each other count zero. It captures, in one number, how easily information could travel around the network. Removing a hub can lower it much more than removing an ordinary node, which echoes the robust-yet-fragile story from Chapter 7.

Key idea

Brain networks studied so far combine modules, small-world paths and densely linked hubs: a wiring that keeps most connections short and cheap while a few long-range links keep the whole network close.

Careful

A brain is far more than its wiring diagram. Even for C. elegans, knowing every connection does not by itself tell you how the worm behaves: connection strengths change, chemical signals act beyond the wires, and timing matters. Network measures describe the scaffolding on which brain activity runs, not the activity itself.

Networks that compute

In 1943 Warren McCulloch and Walter Pitts showed that very simple model neurons, each switching on when enough of its inputs are on, can be wired into networks that compute logical functions. That idea grew into today’s artificial neural networks. Underneath, they are directed networks: units arranged in layers, with weighted, one-way links carrying signals forward from inputs to outputs.

Below is a tiny one, built by hand from threshold units, with three inputs, three hidden units and two outputs. One output answers “are most inputs on?”; the other answers “is an odd number of inputs on?”, a question no single threshold unit can answer on its own.

Interactive 12.2

Signals through layers

Click the input units on the left to switch them on or off, and follow the signals through the layers.

active unit (on)positive weight (solid)negative weight (dashed)
Each hidden unit counts how many inputs are on and fires above its own threshold: “at least 1”, “at least 2”, “all 3”. The odd-number output then adds them with weights +1, −1, +1. No single unit can detect “odd”; the network does it by combining units in layers. In a learning machine, the same network shape would start with random weights and adjust them, guided by examples.

In a modern deep-learning system, the weights are not set by hand. They are learned: the network’s outputs are compared with the right answers, and a method called backpropagation sends error signals backwards along the same links, nudging each weight to reduce the error. The whole calculation, forwards and backwards, is itself a network: a computation graph whose nodes are operations and whose links say which results feed into which.

Key idea

An artificial neural network is a directed, weighted, layered graph: signals flow forward along its links, learning changes the link weights, and the shape of the graph decides what it can compute.

Seeing networks everywhere

You started with seven bridges and a Sunday stroll. Here is what you can now see, whenever you look at anything connected, from a city to a school, an ecosystem, a supply chain, the internet or a brain:

The shape of a network is not decoration. It decides what travels, how fast, how far, and what breaks when something fails. Once you see that, you will see it everywhere.

Intuition check

In a modular network whose modules are joined mainly through a few hub nodes, which single removal is most likely to hurt communication across the whole network?

Intuition check

When an artificial neural network “learns” from examples, what mostly changes?

What you now see

  • Brain networks studied so far show modules, small-world paths and linked hubs, a balance between wiring cost and fast communication.
  • Efficiency (average of 1/distance) measures how easily information can travel; losing hubs lowers it most.
  • Artificial neural networks are directed, weighted, layered graphs; learning changes the weights, and layers let simple units compute what no single unit can.
  • Every lens in this book (degree, distance, giant components, small worlds, hubs, centrality, communities, contagion) applies to any network you meet.