Betweenness centrality is a graph theory metric that quantifies the extent to which a specific node lies on the shortest paths between all other node pairs in a network. It is calculated by summing, for all node pairs, the fraction of shortest paths that pass through the target node. A high betweenness score identifies a node that acts as a critical bridge, bottleneck, or gatekeeper in the network's flow of information, influence, or resources. In agent interaction graphs, this pinpoints agents that control communication or are single points of failure.
Glossary
Betweenness Centrality

What is Betweenness Centrality?
Betweenness centrality is a fundamental graph metric used in network analysis to quantify the influence of a node based on its role as a bridge in the shortest paths between other nodes.
The metric is foundational for analyzing multi-agent system resilience and efficiency. Agents with high betweenness centrality are potential supervisors or coordinators, as many interactions must pass through them. Monitoring this metric helps system architects identify critical dependencies and vulnerabilities—if a high-betweenness agent fails, network connectivity can severely degrade. It is computed using algorithms like Brandes' algorithm, which efficiently calculates scores for all nodes in O(nm) time for unweighted graphs, where n is nodes and m is edges.
Key Properties of Betweenness Centrality
Betweenness centrality is a fundamental metric for analyzing control and influence in networks. These properties define its mathematical behavior and practical interpretation for agent systems.
Definition and Core Calculation
Betweenness centrality quantifies the fraction of all shortest paths in a graph that pass through a given node. Formally, for a node (v), it is calculated as:
[ g(v) = \sum_{s \neq v \neq t} \frac{\sigma_{st}(v)}{\sigma_{st}} ]
Where:
- (\sigma_{st}) is the total number of shortest paths from node (s) to node (t).
- (\sigma_{st}(v)) is the number of those shortest paths that pass through (v).
High centrality indicates a node acts as a critical bridge or bottleneck. In agent systems, this identifies agents that control the flow of information or resources.
Identification of Bridges and Bottlenecks
This is the primary practical application. A node with high betweenness centrality sits on the communication pathways connecting otherwise separate parts of the network.
- Bridge: Connects distinct clusters or communities of agents. Its failure would sever network connectivity.
- Bottleneck: All traffic between major network segments must pass through it, creating a potential single point of failure or latency hotspot.
In agent interaction graphs, monitoring these high-centrality nodes is crucial for system resilience. They represent critical junctures where observability telemetry must be most granular.
Computational Complexity and Algorithms
Calculating exact betweenness centrality for all nodes is computationally intensive. The standard algorithm is Brandes' Algorithm.
- Time Complexity: (O(VE)) for unweighted graphs, and (O(VE + V^2 \log V)) for weighted graphs, where (V) is the number of vertices (agents) and (E) is the number of edges (interactions).
- Process: For large-scale agent networks observed in production, this cost necessitates:
- Sampling: Calculating centrality using a subset of source nodes.
- Approximation Algorithms: Using probabilistic methods for near-real-time telemetry.
- Incremental Updates: Re-computing only for subgraphs affected by dynamic agent interactions.
Normalization and Scale Dependence
Raw betweenness scores depend on the size and structure of the graph. For meaningful comparison across different agent systems or subgraphs, scores are normalized.
- The common normalization divides the raw score by the maximum possible betweenness for a graph of that size: ( (n-1)(n-2)/2 ) for directed graphs, or half that for undirected graphs, where (n) is the number of nodes.
- This yields a value between 0 and 1.
- Key Insight: A normalized score of 0.1 in a 10-agent system has a very different implication than 0.1 in a 10,000-agent system. Normalization allows for the setting of universal Service Level Objectives (SLOs) for bottleneck tolerance.
Dynamic Graph Interpretation
In temporal graphs modeling agent interactions over time, betweenness centrality is not static. A node's importance as a bridge can fluctuate.
- Short-Term vs. Long-Term Centrality: An agent may have high centrality during a specific orchestration sequence but be peripheral otherwise.
- Monitoring Implications: Effective agentic observability requires tracking centrality over sliding time windows to identify:
- Emerging bottlenecks in real-time.
- Agents whose bridging role is persistently critical (requiring redundancy).
- The impact of agent failure or deployment on overall network connectivity.
Relation to Other Centrality Measures
Betweenness centrality captures a specific type of importance distinct from other common metrics. Understanding the contrast is key for full network analysis.
- Degree Centrality: Measures direct connections (neighbors). High degree = popular agent. An agent can have high degree but low betweenness if it's in a dense cluster.
- Closeness Centrality: Measures average shortest path distance to all other nodes. High closeness = efficiently reaches the network. An agent can be central (high closeness) without being a bridge (low betweenness).
- Eigenvector Centrality: Measures influence based on connections to other well-connected nodes. It's recursive and prestige-based.
In multi-agent observability, a holistic view uses all four measures to profile each agent's role: Degree (activity), Closeness (efficiency), Betweenness (control), Eigenvector (influence).
Betweenness Centrality vs. Other Centrality Metrics
A comparison of key graph centrality metrics used to measure node importance in agent interaction networks, highlighting their distinct mathematical definitions and primary use cases.
| Metric / Feature | Betweenness Centrality | Degree Centrality | Closeness Centrality | Eigenvector Centrality |
|---|---|---|---|---|
Core Definition | Measures the fraction of all shortest paths that pass through a node. | Counts the number of direct connections (edges) a node has. | Measures the average shortest path distance from a node to all other reachable nodes. | Measures a node's influence based on the influence of its neighbors. |
Mathematical Focus | Control over network flow; bridging capacity. | Local connectivity; immediate influence. | Global efficiency of information spread; proximity to network. | Prestige within the network; connection quality. |
Primary Use Case in Agent Systems | Identifying critical bridges, single points of failure, or potential bottlenecks in communication. | Identifying highly active agents or potential hubs for broadcasting messages. | Identifying agents best positioned to disseminate information quickly to the entire network. | Identifying influential agents within influential clusters (e.g., leaders of important teams). |
Calculation Complexity | High (O(VE) for unweighted, O(VE + V² log V) for weighted). Requires all-pairs shortest paths. | Low (O(V) or O(E) depending on representation). Simple count of edges. | Medium (O(VE) for unweighted). Requires shortest path calculations from the node. | Medium (Requires computation of the principal eigenvector of the adjacency matrix). |
Sensitive To | Global network structure and path distribution. | Local, immediate neighborhood. | Overall network diameter and connectedness. | The entire network's connection pattern. |
Value for Isolated Node | 0 | 0 | 0 (or undefined if unreachable) | 0 |
Graph Type Applicability | Works on both connected and disconnected graphs (paths only within components). | Applicable to any graph. | Most meaningful for connected graphs; can be calculated per connected component. | Applicable to any graph; most meaningful for strongly connected components in directed graphs. |
Direction Handling | Can be calculated for directed (flow follows edge direction) and undirected graphs. | In-degree, out-degree, or total degree can be specified for directed graphs. | Directed variant considers paths from the node (out-closeness) or to the node (in-closeness). | Directed variant (e.g., PageRank) considers the prestige passed along incoming edges. |
Frequently Asked Questions
Betweenness centrality is a critical metric in graph theory and network analysis. These questions address its definition, calculation, applications, and practical significance for monitoring multi-agent systems.
Betweenness centrality is a graph theory metric that quantifies the extent to which a specific node (or vertex) lies on the shortest paths between all other pairs of nodes in a network. It identifies nodes that act as critical bridges, bottlenecks, or gatekeepers within the graph structure. A node with high betweenness centrality has a disproportionate influence on the flow of information, resources, or control because many of the network's optimal pathways must pass through it. In the context of agent interaction graphs, this metric pinpoints agents that are essential for efficient communication or that represent single points of failure.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Betweenness centrality is one of several key metrics used to analyze the structure and dynamics of interaction graphs in multi-agent systems. Understanding its related concepts provides a complete toolkit for network analysis.
Centrality
Centrality is a family of graph theory metrics that quantify the relative importance or influence of a node within a network. It provides different lenses for analyzing agent roles.
- Degree Centrality: Measures the number of direct connections a node has. High-degree agents are highly active communicators.
- Closeness Centrality: Measures how close a node is to all other nodes in the network. Agents with high closeness can disseminate information quickly.
- Eigenvector Centrality: Measures a node's influence based on the influence of its neighbors. It identifies agents connected to other important agents.
- Betweenness Centrality (this topic) specifically identifies bridges or bottlenecks by measuring how often a node lies on the shortest paths between others.
Shortest Path Algorithm
A shortest path algorithm is a graph algorithm that finds a path between two nodes such that the sum of the weights of its constituent edges is minimized. Betweenness centrality is computationally dependent on these algorithms.
- Dijkstra's Algorithm: The classic algorithm for finding shortest paths in weighted graphs with non-negative edge weights.
- A Search*: An extension of Dijkstra's that uses a heuristic to guide the search, making it more efficient for pathfinding.
- Breadth-First Search (BFS): Used to find shortest paths in unweighted graphs where each edge has a uniform cost.
- In centrality calculation, these algorithms are run repeatedly to discover all-pairs shortest paths, upon which the betweenness score is based.
Community Detection
Community detection is the task of identifying groups of nodes (communities) within a graph that are more densely connected internally than with the rest of the network. It reveals clusters of frequently interacting agents.
- Modularity: A common metric for evaluating the quality of a community partition.
- Algorithms: Include the Louvain method (greedy optimization) and Girvan-Newman (iterative edge removal based on betweenness centrality).
- Relationship to Betweenness: The Girvan-Newman algorithm uses edge betweenness centrality to find communities by progressively removing edges with the highest betweenness scores, which are likely bridges between communities.
Graph Traversal
Graph traversal is the process of visiting nodes in a graph in a systematic manner by following edges. It is a fundamental operation underpinning many graph algorithms, including those for centrality.
- Breadth-First Search (BFS): Explores neighbor nodes first, ideal for shortest path finding in unweighted graphs and level-order analysis.
- Depth-First Search (DFS): Explores as far as possible along each branch before backtracking, useful for topological sorting and cycle detection.
- In Practice: Efficient betweenness centrality algorithms, like Brandes' algorithm, rely on modified BFS traversals from each node to accumulate path counts, avoiding the computational cost of calculating all-pairs shortest paths explicitly.
Adjacency Matrix
An adjacency matrix is a square matrix used to represent a finite graph. The element at row i and column j indicates the presence (and often weight) of an edge from node i to node j.
- Structure: For a graph with n nodes, it is an n x n matrix. A value of 1 (or a weight) at position (i,j) indicates a connection.
- Use Case: Provides a compact, computationally efficient representation for dense graphs. Many graph algorithms are expressed as matrix operations.
- Limitation: For sparse graphs (like many interaction networks), it can be memory-inefficient, making adjacency lists a preferred alternative.
- Relevance: Centrality metrics can be computed using operations on the adjacency matrix and its powers.
PageRank Algorithm
The PageRank algorithm is an iterative graph algorithm that assigns a numerical weight to each node in a directed graph, measuring its relative importance based on the quantity and quality of incoming links.
- Origin: Developed by Google founders to rank web pages. It models a random surfer following links.
- Mechanism: A node's score is distributed to its outbound links, and its score is the sum of the contributions from its inbound links.
- Contrast with Betweenness: PageRank measures influence via connection prestige, while betweenness centrality measures control over information flow. An agent may have high PageRank by being linked to by important agents, but high betweenness by being a critical conduit between otherwise separate groups.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us