Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Social network lab

Paste who knows whom and see the network: degree, closeness, betweenness and eigenvector centrality, clustering, shortest paths and groups.

Shortest path

Everyone

How to use

  1. Type or paste pairs of people who know each other, one pair per line: Ana, Ben. A dash, semicolon or tab also works; with single names a space is enough. Links go both ways.
  2. Press Analyse. The drawing shows everyone; colours are the groups found, and circle size follows the measure you choose.
  3. The table lists every person with each centrality measure, best first.
  4. Pick two people under Shortest path to see the fewest steps between them, drawn on the network.

Keyboard and touch

TabMove between the box, the menus and the buttons
Enter or SpacePress the focused button

Tips

  • Links (degree) shows who knows the most people; betweenness shows who connects groups that would otherwise be apart. They are often different people.
  • Eigenvector centrality rewards knowing well-connected people, not just many people.
  • A clustering of 1 means all of someone's friends know each other; a broker between groups has low clustering and high betweenness.
  • Use it for a class, a club, characters in a novel or links between web pages: anything with pairs.

About this tool

Links are undirected and unweighted. Closeness is (r / total distance) × (r / (n - 1)), where r is how many others a person can reach, so people in small separate parts score lower. Betweenness uses Brandes's algorithm and is divided by (n - 1)(n - 2), so it is the share of shortest paths between other pairs that run through a person. Eigenvector centrality comes from repeated multiplication by the network plus itself, scaled so the top person has 1. Clustering is the share of a person's friend pairs who are also friends; transitivity is the same over the whole network. Groups come from greedy modularity: start with everyone alone, keep joining the two linked groups that raise modularity Q the most, stop when no join helps.

The drawing uses a seeded force layout, so the same network looks the same each time. The class is made up. Up to 150 people; everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product