Directed Closeness Centrality

Machine Learning
Introduced by
Freeman, L. C.; Wasserman, S. & Faust, K.
Year
1979–1994
Type
Centrality measure
Family
Network science

What does it do?

Directed closeness centrality extends closeness to directed networks by scoring each node twice: in-closeness, how quickly other nodes can reach it along arc direction, and out-closeness, how quickly it can reach all others.

It is used where link direction carries meaning, such as citation flows, information cascades, or authority hierarchies. Both scores are reciprocals of the mean directed shortest-path distance, so they become unreliable on graphs where many directed paths do not exist.

The intuition behind the method

In an undirected network, closeness simply asks: how short are my paths to everyone else? In a directed network, paths have a one-way obligation — an arc from A to B does not guarantee a path from B to A. Directed closeness therefore splits the question in two. In-closeness captures receptive reach: if many nodes can quickly send information to you via directed paths, you are a natural information sink or target of influence. Out-closeness captures broadcast reach: if you can quickly reach everyone else via outgoing paths, you are a potent diffuser or initiator. The two scores can differ dramatically for the same node, revealing asymmetric roles invisible to undirected analysis.

History

Closeness centrality is part of the family of centrality measures whose conceptual framework was clarified by Freeman in his 1979 paper "Centrality in social networks conceptual clarification" (Social Networks, 1(3), 215–239). The directed in- and out-closeness formulas on this page are the standard definitions used in the network-analysis literature, obtained by applying the closeness idea to directed shortest-path distances. Freeman's paper is cited here for the general conceptual framework of centrality, not as the source of the directed formulas. Wasserman and Faust's 1994 textbook is a general reference on social network analysis methods.

When to use it

Choose directed closeness when arc direction carries meaning and you need to know which nodes reach others quickly (out-closeness) or are reached quickly (in-closeness), as in citation, follower, hyperlink, or supply-chain networks. It is most informative on graphs that are strongly connected or nearly so, where the distance sums are finite for most nodes. Do not use it on undirected networks, or on directed networks in which the direction is an artefact of how the data were recorded. On sparse or fragmented directed graphs, the basic sum-based scores collapse to zero for many nodes; before interpreting any scores, report the number or share of unreachable ordered pairs. If that share is substantial, restrict the analysis to a strongly connected component or use harmonic closeness, and state which one was used. For very large graphs, the all-pairs shortest-path computation can be prohibitive, and approximation may be needed.

Limitations and considerations

  • Computing shortest paths from every node is expensive: breadth-first search from all nodes costs roughly O(n(n+m)) on unweighted graphs, which becomes prohibitive for very large networks.
  • With the sum-based formula on this page, any unreachable pair makes the distance sum infinite and the score zero, so graphs that are not strongly connected produce many zero scores for both in- and out-closeness.
  • Only shortest paths are counted, so the number of alternative routes and the volume of flow along them are ignored, unlike flow-based or path-count measures.
  • Scores depend on how disconnected pairs are treated and on whether arc weights are used, which makes comparisons across studies with different choices difficult.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Separates how easily a node is reached from how quickly it reaches others, which undirected closeness merges into a single score.
  • In-closeness and out-closeness together give a two-part centrality profile for each node, revealing sink and source roles.
  • Each score is the reciprocal of the mean directed distance (n-1 divided by the distance sum), so it can be read as an average reachability speed.
  • Applicable to any directed relation in which distance along arc direction is meaningful, including information, citation, and resource flows.
  • Harmonic closeness, a distinct measure from the formula on this page, gives finite scores on graphs with unreachable pairs.

Applications

  • Identifying citation sinks and sources in academic co-citation and bibliometric networks.
  • Finding efficient broadcasters and receptive hubs in Twitter or social media follower graphs.
  • Mapping information flow bottlenecks and propagation stars in organizational communication networks.
  • Detecting authority and hub roles in hyperlink and web graphs.
  • Analysing trophic reach and vulnerability in directed food webs and ecological networks.
  • Locating key distribution and receiving nodes in directed supply-chain or logistics graphs.

How it works

How it works

1

Represent the network as a directed graph in which each arc has a source and a target, stored as a directed adjacency matrix or an edge list. The formulas on this page use unweighted hop counts. If arcs carry distances or costs, the shortest-path step must use weighted distances instead.

2

Run a directed shortest-path search from every node: breadth-first search for unweighted graphs, or Dijkstra's algorithm when arcs carry non-negative weights. Because arcs are one-way, d(u,v) can differ from d(v,u), and d is infinite when no directed path from u to v exists.

Formula
d(u,v) = \text{shortest directed path length from } u \text{ to } v
3

For node v, sum the shortest directed distances from every other node u to v, then take (n-1) divided by that sum. The score is high when v can be reached from the rest of the network in few directed steps on average.

Formula
C_{\text{in}}(v) = \frac{n-1}{\sum_{u \neq v} d(u,v)}
4

For node v, sum the shortest directed distances from v to every other node, then take (n-1) divided by that sum. The score is high when v can reach the whole network in few directed steps, which indicates broadcast or spreading reach.

Formula
C_{\text{out}}(v) = \frac{n-1}{\sum_{u \neq v} d(v,u)}
5

If the graph is not strongly connected, some distance sums are infinite, and the formulas above give a score of zero for many nodes. One remedy is to restrict computation to the largest strongly connected component, which changes the node set analysed. Another is harmonic closeness, which sums the reciprocal distances 1/d over all other nodes, with unreachable pairs contributing zero. Harmonic closeness is not the formula given above and is not a mean of distances, so report it as a separate measure. Other reachability-restricted normalizations also exist, and software tools implement them differently, so check the documentation of your software before reporting results.

Common pitfalls

  • Applying the sum-based formula to a graph that is not strongly connected without handling unreachable pairs, so that many nodes receive a score of zero and the ranking carries little information.
  • Conflating in-closeness and out-closeness, or reporting only one without justifying which dimension is relevant to the question.
  • Comparing scores across networks with different density, structure, or degree of disconnection. Scaling by n-1 does not remove these effects, so such comparisons are unreliable.
  • Interpreting high out-closeness as social influence without considering whether the arcs in the domain actually carry influence. For example, citations point from citing to cited work, so direction there encodes deference rather than influence in the naive sense.
  • Using unweighted hop counts when arcs represent distances or costs, which ignores differences in reach that the weights would capture.

Frequently asked questions

What is the difference between in-closeness and out-closeness?

In-closeness measures how easily a node can be reached from all others along directed paths — a high in-closeness node is an efficient information sink or target. Out-closeness measures how quickly a node can reach all others — a high out-closeness node is an efficient broadcaster or spreader. The two scores can differ greatly for the same node.

What should I do if my directed graph is not strongly connected?

Two options are common. You can restrict the analysis to the largest strongly connected component, which changes the set of nodes analysed. Alternatively, you can use a harmonic-mean variant that sums reciprocal distances over reachable pairs only, so unreachable pairs contribute zero. The harmonic variant is not the formula given on this page, so state which approach you used and check your software's documentation for whether it offers this option.

How does directed closeness differ from directed betweenness centrality?

Closeness reflects how short a node's directed paths are to (or from) others — it is about speed of access. Betweenness centrality counts how often a node lies on directed shortest paths between other pairs — it is about brokerage and control of flows. A node can have high closeness but low betweenness if it reaches others quickly but is rarely on others' optimal routes.

Should I use directed closeness or directed PageRank to find influential nodes?

Both capture reachability in directed networks, but from different angles. Out-closeness scores a node only by how quickly it reaches every other node, based on shortest path lengths, without regard to the importance of the nodes it reaches. PageRank weights each incoming link by the score of its source, so it captures recursive prestige. Use closeness when path length and reach matter; use PageRank when endorsement by important nodes is the theoretical concern.

Is directed closeness centrality suitable for weighted directed graphs?

The formulas on this page use unweighted hop counts. For weighted directed graphs in which arc weights represent distance, cost, or dissimilarity, replace the hop counts with weighted shortest paths computed by Dijkstra's algorithm. If weights represent strength or similarity rather than distance, convert them to costs (for example, by taking their inverse) before applying the algorithm.

Related methods

Sources

  1. Wasserman, S. & Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge University Press.

    ISBN: 978-0-521-38269-4
  2. Freeman, L. C. (1979). Centrality in social networks conceptual clarification. Social Networks, 1(3), 215–239.

    Open DOI reference