Marginal

Networks

The mathematics of connected systems: graphs and adjacency matrices, paths and distances, centrality, betweenness and PageRank, Erdős–Rényi random graphs and the giant component, clustering, small worlds and communities, scale-free networks, strategic network formation, threshold cascades, epidemics on networks, and graph Laplacians with consensus dynamics.

19 lessons in 3 units

Start your free trial14 days free. No card needed.
What you'll learn

19 lessons, one small step at a time

Each lesson states its goal, then works up to it in short steps with practice after each. A placement test at the start skips what you already know.

Network Structure

6 lessons
  1. DegreesFind the degrees of a network's nodes, and use the handshake lemma to relate degrees to edges.
  2. Adjacency matrices & walksCount walks between nodes with powers of the adjacency matrix, and count a graph's triangles.
  3. Paths & distanceFind distances by breadth-first search, compute eccentricity and diameter, and explain why paths in large networks are short.
  4. Degree & closeness centralityCompute degree and closeness centrality, and show that the two can rank nodes differently.
  5. Betweenness centralityCompute betweenness centrality on paths and stars, and explain why brokers matter.
  6. PageRankCompute PageRank values from the random-surfer model and its stationary distribution.

Network Models

8 lessons
  1. Erdős–Rényi graphsCompute the expected number of edges and the mean degree of an Erdős–Rényi graph, and how much single draws vary.
  2. Degrees & the giant componentCompute Poisson degree frequencies in a large random graph, find when a giant component appears, and find its size.
  3. Clustering & small worldsCompute a node's clustering coefficient, and explain how small worlds combine high clustering with short paths.
  4. Communities & modularityCompute how many edges a group would have by chance and the modularity of a split, and explain the pitfalls of finding communities.
  5. Power lawsCompare frequencies under a power-law degree distribution, and estimate its exponent from two points.
  6. Preferential attachmentCompute preferential-attachment probabilities, and explain the hubs this growth creates and how fragile they make the network.
  7. Network formationCompute payoffs in the connections model, check pairwise stability, and explain why stable networks need not be efficient.
  8. The friendship paradoxCompute the average degree of a random neighbor and the size of the friendship paradox's gap, and use the paradox in practice.

Dynamics on Networks

5 lessons
  1. Threshold cascadesCompute adoption thresholds, trace cascades, and tell simple from complex contagion.
  2. The SIR modelCompute the reproduction number, the herd-immunity threshold and the final size of an epidemic, and simulate the SIR model.
  3. Epidemics on networksCompute the excess degree and the network R₀, find the epidemic threshold, and compare vaccination strategies.
  4. Graph LaplaciansBuild a graph's Laplacian, compute its quadratic form, read components and connectivity from its eigenvalues, and cut the graph with the Fiedler vector.
  5. Consensus dynamicsCompute DeGroot averaging steps and the consensus value, and tell when a society's consensus is wise.
Sample lesson

Degrees

Goal: Find the degrees of a network's nodes, and use the handshake lemma to relate degrees to edges.

Friendships, trade links, web hyperlinks, neural wiring, power grids: all are networks, nodes joined by edges. Network science studies how the pattern of connections shapes what flows through them. The simplest property of a node is how many connections it has.

We will count links and finish with the handshake lemma.

Step 1: Counting links

A network, or graph, is a set of nodes joined by edges; here edges have no direction, and no node links to itself. The degree of a node is its number of edges: count the edges that have it as an endpoint. In the graph with edges 1–2, 1–3, 1–4 and 3–4, node 1 has degree 3, nodes 3 and 4 have degree 2, and node 2 has degree 1. A node with no edges has degree 0.

Step 2: The handshake lemma

Adding up degrees counts every edge twice, once from each end:

Σᵢ kᵢ = 2 × (number of edges), mean degree = 2E/n

In the example the degrees 3, 1, 2 and 2 add up to 8, twice the 4 edges. Degrees (3, 3, 2, 2, 2) give 12/2 = 6 edges, and a network of 40 nodes and 60 edges has mean degree 3. So the degrees of any graph add up to an even number: (2, 1, 1, 1) is impossible. In a simple graph on n nodes no degree can exceed n − 1, so (3, 3, 1) is impossible too, while (3, 1, 1, 1), a star, works.

In the app, each step ends with practice questions, new ones every time, and the lesson comes back later in spaced reviews.

Start Networks

Lessons that need something you haven't learned yet bring it in first, from any course.

Start your free trial14 days free. No card needed.