ArticleslgStudy

computer science

Betweenness centrality

Betweenness centrality is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Betweenness centrality rather than just read about it. In short: In graph theory, betweenness centrality is a measure of centrality in a graph based on shortest paths. Betweenness centrality measures how frequently a node appears on the shortest path between other nodes in the graph.

Betweenness centrality — main illustration
Betweenness centrality — illustration

Key takeaways

  • Betweenness centrality belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Betweenness centrality to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Betweenness centrality from memory before moving on to harder problems.

Reference excerpt

In graph theory, betweenness centrality is a measure of centrality in a graph based on shortest paths. Betweenness centrality measures how frequently a node appears on the shortest path between other nodes in the graph. For every pair of vertices in a connected graph, there exists at least one shortest path between the vertices, that is, there exists at least one path such that either the number of edges that the path passes through (for unweighted graphs) or the sum of the weights of the edges (for weighted graphs) is minimized. Betweenness centrality was devised as a general measure of centrality:. It applies to a wide range of problems in network theory, including problems related to social networks, biology, transport, and scientific cooperation. Although earlier authors had intuitively described centrality in terms of betweenness, Freeman (1977) gave the first formal definition of betweenness centrality. Betweenness centrality has wide application in network theory; it measures the extent to which nodes lie between one another. For example, in a telecommunications network, a node with higher betweenness centrality would have more control over the network because more information flows through it.

Definition The betweenness centrality of a node v is given by the expression:

g(v)=∑s≠v≠tσst(v)σst where σst is the total number of shortest paths from node s to node t and σst(v) is the number of those paths that pass through v (not where v is an end point). The betweenness centrality of a node scales with the number of pairs of nodes as suggested by the summation indices. Therefore, the calculation may be rescaled by dividing through by the number of pairs of nodes not including v, so that g∈[0,1]. The division is done by (N−1)(N−2) for directed graphs and (N−1)(N−2)/2 for undirected graphs, where N is the number of nodes in the giant component. Note that this scales for the highest possible value, where one node is crossed by every single shortest path. This is often not the case, and a normalization can be performed without a loss of precision

normal(g(v))=g(v)−min⁡(g)max⁡(g)−min⁡(g) which results in:

max⁡(normal)=1 min⁡(normal)=0 Note that this will always be a scaling from a smaller range into a larger range, so no precision is lost.

Weighted networks In a weighted network the links connecting the nodes are no longer treated as binary interactions, but are weighted in proportion to their capacity, influence, frequency, etc., which adds another dimension of heterogeneity within the network beyond the topological effects. A node's strength in a weighted network is given by the sum of the weights of its adjacent edges.

si=∑j=1Naijwij With aij and wij being adjacency and weight matrices between nodes i and j, respectively. Analogous to the power law distribution of degree found in scale free networks, the strength of a given node follows a power law distribution as well.

s(k)≈kβ A study of the average value s(b) of the strength for vertices with betweenness b shows that the functional behavior can be approximated by a scaling form: s(b)≈bα

Percolation centrality Percolation centrality is a version of weighted betweenness centrality, but it considers the 'state' of the source and target nodes of each shortest path in calculating this weight. Percolation of a 'contagion' occurs in complex networks in a number of scenarios. For example, viral or bacterial infection can spread over social networks of people, known as contact networks. The spread of disease can also be considered at a higher level of abstraction, by contemplating a network of towns or population centres, connected by road, rail or air links. Computer viruses can spread over computer networks. Rumours or news about business offers and deals can also spread via social networks of people. In all of these scenarios, a 'contagion' spreads over the links of a complex network, altering the 'states' of the nodes as it spreads, either recoverably or otherwise. For example, in an epidemiological scenario, individuals go from 'susceptible' to 'infected' state as the infection spreads. The states the individual nodes can take in the above examples could be binary (such as received/not received a piece of news), discrete (susceptible/infected/recovered), or even continuous (such as the proportion of infected people in a town), as the contagion spreads. The common feature in all these scenarios is that the spread of contagion results in the change of node states in networks. Percolation centrality (PC) was proposed with this in mind, which specifically measures the importance of nodes in terms of aiding the percolation through the network. This measure was proposed by Piraveenan, Prokopenko & Hossain (2013). Percolation centrality is defined for a given node, at a given time, as the proportion of 'percolated paths' that go through that node. A 'percolated path' is a shortest path between a pair of nodes, where the source node is percolated (e.g., infected). The target node can be percolated or non-percolated, or in a partially percolated state.

PCt(v)=1N−2∑s≠v≠rσsr(v)σsrxts∑[xti]−xtv where σsr is total number of shortest paths from node s to node r and σsr(v) is the number of those paths that pass through v. The percolation state of the node i at time t is denoted by xti and two special cases are when xti=0 which indicates a non-percolated state at time t whereas when xti=1 which indicates a fully percolated state at time t. The values in between indicate partially percolated states ( e.g., in a network of townships, this would be the percentage of people infected in that town). The attached weights to the percolation paths depend on the percolation levels assigned to the source nodes, based on the premise that the higher the percolation level of a source node is, the more important are the paths that originate from that node. Nodes which lie on shortest paths originating from highly percolated nodes are therefore potentially more important to the percolation. The definition of PC may also be extended to include target node weights as well. Percolation centrality calculations run in O(|V||E|) time with an efficient implementation adapted from Brandes' algorithm. If the calculation needs to consider target node weights, the worst case time is O(|V|3).

… excerpt ends here. Continue reading the full article.

Illustrations

Betweenness centrality: An undirected graph colored based on the betweenness centrality of each vertex from least (red) to greatest (blue)
An undirected graph colored based on the betweenness centrality of each vertex from least (red) to greatest (blue)

Worked examples

Example 1 — a first encounter with Betweenness centrality

Start with the simplest possible case. Write down what Betweenness centrality claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Betweenness centrality before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Betweenness centrality ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Betweenness centrality

In research
Betweenness centrality appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Betweenness centrality in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Betweenness centrality is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graph distance, Graph invariants, Network theory, so understanding it makes those chapters shorter.
In everyday life
Look for Betweenness centrality outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Betweenness centrality” →

How to study Betweenness centrality in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Betweenness centrality means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Betweenness centrality out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Betweenness centrality in simple terms?

In graph theory, betweenness centrality is a measure of centrality in a graph based on shortest paths. Betweenness centrality measures how frequently a node appears on the shortest path between other nodes in the graph.

Why does Betweenness centrality matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Betweenness centrality?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Betweenness centrality.

Tags

  • Graph distance
  • Graph invariants
  • Network theory

Keep exploring