Centrality is a family of graph theory metrics that quantify the relative importance, influence, or connectedness of a node (or vertex) within a network. In the context of agent interaction graphs, these metrics identify which agents are most critical to communication flow, information diffusion, or system resilience. Different algorithms measure distinct aspects of importance, leading to several key variants.
Glossary
Centrality

What is Centrality?
Centrality is a core concept in network analysis for quantifying the importance of nodes within a graph.
Common centrality measures include degree centrality (counting direct connections), betweenness centrality (identifying bridges on shortest paths), closeness centrality (measuring average distance to all other nodes), and eigenvector centrality (gauging influence based on connections to other influential nodes). Analyzing these metrics provides system architects with actionable insights into network bottlenecks, single points of failure, and optimal agents for broadcasting information or interventions.
Key Centrality Metrics
Centrality metrics quantify the structural importance of a node within a network. In agent interaction graphs, these metrics identify influential agents, critical communication bridges, and potential bottlenecks.
Degree Centrality
Degree centrality measures a node's importance by counting its number of direct connections (edges). In an agent system, an agent with high degree centrality is highly active, communicating directly with many other agents.
- Calculation: For a node, it's the count of its incident edges. In directed graphs, this splits into in-degree (incoming messages) and out-degree (outgoing messages).
- Use Case: Identifies 'hub' agents that are central to local information flow. High in-degree may indicate an agent that many others report to; high out-degree may indicate a broadcaster or orchestrator.
- Limitation: Purely local; does not consider the broader network structure or the importance of an agent's connections.
Betweenness Centrality
Betweenness centrality quantifies how often a node lies on the shortest path between other node pairs. It identifies agents that act as critical bridges or gatekeepers controlling the flow of information.
- Calculation: For a node, it's the sum of the fraction of all-pairs shortest paths that pass through that node.
- Use Case: Crucial for bottleneck analysis. An agent with high betweenness is a single point of failure; if it fails, communication between other agent clusters may break. It's key for designing resilient multi-agent architectures.
- Example: In a customer service agent graph, a routing agent that directs queries to specialists would have very high betweenness.
Closeness Centrality
Closeness centrality measures how close a node is to all other nodes in the network, based on the inverse sum of its shortest path distances. It identifies agents that can disseminate information or receive broadcasts most efficiently.
- Calculation: The inverse of the sum of the shortest path distances from the node to all other reachable nodes.
- Use Case: Identifies agents optimally positioned for broadcasting messages or sensing the overall system state quickly. High closeness suggests an agent is 'in the middle' of the network, not on the periphery.
- Consideration: Requires the graph to be connected; for disconnected components, harmonic closeness centrality is often used instead.
Eigenvector Centrality
Eigenvector centrality measures a node's influence based on the influence of its neighbors. A node is important if it is connected to other important nodes. This is the core idea behind Google's original PageRank algorithm.
- Calculation: Computed as the principal eigenvector of the graph's adjacency matrix. It's an iterative measure where a node's score is proportional to the sum of its neighbors' scores.
- Use Case: Identifies agents embedded within influential clusters or coalitions. An agent may not have the most connections, but if its few connections are to highly central agents, its eigenvector centrality will be high.
- Application: Useful for finding agents whose influence radiates through multi-hop connections.
PageRank
PageRank is a variant of eigenvector centrality developed for directed web graphs. It models a random surfer who follows links with a probability d (damping factor) or jumps to a random node with probability 1-d. This handles 'sink' nodes (nodes with no outgoing edges).
- Calculation: An iterative algorithm that distributes 'rank' across the graph. Each node's rank is derived from the ranks of nodes linking to it, divided by their out-degree.
- Use Case: In agent graphs, it identifies agents that are important targets of communication. An agent receiving messages from many other agents, especially from other important agents, will have a high PageRank.
- Differentiator: More robust than simple in-degree, as it accounts for the quality of incoming links.
Choosing the Right Metric
Selecting a centrality metric depends on the specific operational question about the agent network.
- Identify Hubs: Use Degree Centrality.
- Find Bottlenecks/Bridges: Use Betweenness Centrality.
- Optimize Broadcast Speed: Use Closeness Centrality.
- Measure Influence via Network Neighborhood: Use Eigenvector Centrality or PageRank.
Practical Note: These metrics are often computed on weighted graphs (where edge weight could be message count, token volume, or latency) and temporal graphs (where centrality changes over time). For production observability, track centrality shifts to detect emerging leaders or failing coordinators.
Comparison of Centrality Metrics
A quantitative comparison of common graph centrality algorithms used to measure the influence or importance of nodes (agents) within an interaction network.
| Metric / Characteristic | Degree Centrality | Betweenness Centrality | Closeness Centrality | Eigenvector Centrality |
|---|---|---|---|---|
Primary Definition | Counts direct connections (neighbors). | Measures fraction of shortest paths passing through node. | Measures average shortest path distance to all other nodes. | Measures influence based on connections to other influential nodes. |
Interpretation in MAS | Identifies highly connected agents (hubs). | Identifies bridge agents controlling information flow. | Identifies agents that can broadcast information fastest. | Identifies agents embedded in a powerful/influential neighborhood. |
Graph Type | Undirected, Directed | Undirected, Directed (with path direction) | Connected graphs only | Undirected, Directed (requires acyclic or strongly connected) |
Computational Complexity | O(|V|) for single node, O(|V|+|E|) for all | O(|V| * |E|) for unweighted (Brandes' Algorithm) | O(|V| * (|V|+|E|)) for all (requires APSP) | O(|V|^3) for naive, ~O(|V|+|E|) for power iteration |
Scale Variant | Yes (normalized by max possible degree) | Yes (normalized by (|V|-1)(|V|-2)/2) | Yes (reciprocal of sum of distances) | Yes (vector normalized to unit length) |
Sensitive to Graph Diameter | ||||
Identifies Local Bridges | ||||
Requires Global Graph Knowledge | ||||
Common Use Case in Observability | Detecting overloaded agent coordinators. | Finding single points of failure in communication. | Optimizing broadcast origin for low-latency alerts. | Ranking agent authority in a reputation network. |
Centrality in Agentic Observability
Centrality metrics quantify the relative importance or influence of an agent within an interaction network, providing critical signals for monitoring system health, identifying bottlenecks, and auditing information flow.
Degree Centrality
Degree centrality measures the number of direct connections (edges) an agent (node) has within the interaction graph. It's the simplest centrality metric.
- High In-Degree: An agent receiving many messages is often an information sink or final decision-maker.
- High Out-Degree: An agent initiating many messages is often an orchestrator or workload dispatcher.
- Use Case: Quickly identify potential single points of failure. An agent with exceptionally high degree centrality that fails could cripple communication.
Betweenness Centrality
Betweenness centrality quantifies how often an agent lies on the shortest path between other pairs of agents. It identifies critical bridges or bottlenecks.
- High Betweenness: The agent acts as a gatekeeper or broker for information flow. All communication between two parts of the network must pass through it.
- Observability Impact: Agents with high betweenness are prime candidates for intensive telemetry, as latency or errors here have disproportionate systemic impact.
- Algorithm: Calculated by summing, for all agent pairs, the fraction of shortest paths that pass through the target agent.
Closeness Centrality
Closeness centrality measures how quickly an agent can reach all other agents in the network, based on the average length of the shortest paths to every other node.
- High Closeness: The agent is centrally located in the topological sense, able to broadcast information or receive updates with minimal hops.
- Inverse Farness: It is defined as the inverse of the sum of shortest path distances to all other nodes.
- Use Case: Identifying optimal agents for broadcasting global state updates or for serving as a monitoring hub that needs efficient access to all system parts.
Eigenvector Centrality
Eigenvector centrality measures an agent's influence based on the influence of its neighbors. A node is important if it is connected to other important nodes.
- Recursive Importance: It's not just how many connections, but who you're connected to. An agent connected to a few highly central agents scores highly.
- Underlying Math: Calculated as the principal eigenvector of the graph's adjacency matrix.
- Observability Application: Helps identify influential agent clusters or de facto leaders in emergent, peer-to-peer agent systems, even if they aren't formally designated as orchestrators.
PageRank: A Variant for Directed Graphs
PageRank is a variant of eigenvector centrality developed for the World Wide Web, well-suited for directed interaction graphs where message flow has a direction (sender -> receiver).
- Random Surfer Model: Models the probability a "random walker" following links (edges) ends up on a given node, with a damping factor to account for jumps.
- Handles Sinks: Better accounts for nodes that only receive messages (sinks) by incorporating the teleportation probability.
- Agentic Use: Effective for ranking agents in workflows where influence propagates directionally, such as in a hierarchical or pipeline-based multi-agent system.
Practical Observability Applications
Centrality metrics transform raw interaction logs into actionable system intelligence.
- Anomaly Detection: A sudden, significant shift in an agent's centrality can indicate failure, malicious behavior (e.g., prompt injection causing spam), or a change in system topology.
- SLO/SLI Definition: Define Service Level Objectives for high-betweenness agents (e.g., latency < 100ms) or high-degree orchestrators (e.g., uptime > 99.95%).
- Cost Attribution & Optimization: Attribute aggregate costs (LLM tokens, API calls) more accurately by weighting them by an agent's centrality, highlighting the cost impact of critical pathways.
- Capacity Planning: Identify agents under high communicative load (high degree) for potential scaling or architectural refactoring.
Frequently Asked Questions
Centrality is a family of graph theory metrics that quantify the relative importance or influence of a node within a network. In the context of agentic observability, these metrics are crucial for identifying critical agents, communication bottlenecks, and single points of failure in multi-agent systems.
Centrality is a family of graph theory metrics that quantify the relative importance or influence of a node within a network. It provides a numerical ranking of nodes based on their structural position, answering the question: "Which nodes are most central?" The definition of "importance" varies, leading to different centrality measures, each capturing a distinct aspect of a node's role in the graph's connectivity and flow of information. In agent interaction graphs, where nodes represent autonomous agents and edges represent communication or data exchange, centrality helps system architects identify which agents are most critical to system resilience, throughput, and overall function.
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
Centrality is one of several key graph theory metrics used to analyze networks. Understanding its variants and related measures provides a complete toolkit for quantifying influence, flow, and structure in agent interaction graphs.

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