Skip to Content
Graph Algorithms
book

Graph Algorithms

by Mark Needham, Amy E. Hodler
May 2019
Intermediate to advanced
265 pages
5h 58m
English
O'Reilly Media, Inc.
Book available
Content preview from Graph Algorithms

Chapter 5. Centrality Algorithms

Centrality algorithms are used to understand the roles of particular nodes in a graph and their impact on that network. They’re useful because they identify the most important nodes and help us understand group dynamics such as credibility, accessibility, the speed at which things spread, and bridges between groups. Although many of these algorithms were invented for social network analysis, they have since found uses in a variety of industries and fields.

We’ll cover the following algorithms:

  • Degree Centrality as a baseline metric of connectedness

  • Closeness Centrality for measuring how central a node is to the group, including two variations for disconnected groups

  • Betweenness Centrality for finding control points, including an alternative for approximation

  • PageRank for understanding the overall influence, including a popular option for personalization

Tip

Different centrality algorithms can produce significantly different results based on what they were created to measure. When you see suboptimal answers, it’s best to check the algorithm you’ve used is aligned to its intended purpose.

We’ll explain how these algorithms work and show examples in Spark and Neo4j. Where an algorithm is unavailable on one platform or where the differences are unimportant, we’ll provide just one platform example.

Figure 5-1 shows the differences between the types of questions centrality algorithms can answer, and Table 5-1 is a quick reference for what ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Algorithms and Data Structures

Advanced Algorithms and Data Structures

Marcello La Rocca
Grokking Algorithms

Grokking Algorithms

Aditya Bhargava
Data Structures & Algorithms in Python

Data Structures & Algorithms in Python

John Canning, Alan Broder, Robert Lafore
Algorithms: 24-part Lecture Series

Algorithms: 24-part Lecture Series

Robert Sedgewick, Kevin Wayne

Publisher Resources

ISBN: 9781492047674Errata PageSupplemental Content