Measure how quickly information reaches each node today. Choose weighted or unweighted paths easily here. Export results for reports, comparisons, and practical decisions fast.
Closeness centrality summarizes how near a node is to all others through shortest paths.
Here, d(u,v) is shortest-path distance. For weighted graphs, distances are computed using Dijkstra’s method.
Example undirected network with five nodes and unit weights.
| Source | Target | Weight |
|---|---|---|
| A | B | 1 |
| A | C | 1 |
| B | D | 1 |
| C | D | 1 |
| D | E | 1 |
Many physics systems form graphs: lattice sites, sensors, transport links, or coupled oscillators. Closeness centrality estimates how quickly a perturbation or signal reaches other nodes along shortest paths. Higher values often indicate efficient mediators for diffusion, routing, or synchronization. In experimental lattice models, it helps identify hubs for control and measurement. In thermal networks, it relates to rapid equilibration routes.
In this calculator, distance is shortest-path cost. Unweighted mode counts each edge as one step. Weighted mode sums positive costs such as propagation delay, resistance, attenuation length, or travel time. The algorithm finds minimal total cost, aligning with practical experimental constraints. Use consistent units across all weights for reliable comparisons later.
For connected networks, standard closeness is (N−1)/Σd. Scores rise when average shortest paths shrink. Interior nodes in a well-meshed lattice usually outperform boundary nodes. This mode is strict: if any node is unreachable, the node’s score becomes zero.
Measurements can miss links, creating components. Normalized mode preserves comparisons by scaling with reachable nodes. A node that reaches fewer peers is penalized, even if its local distances are small. This is helpful for thresholded correlation networks and sparse interaction graphs.
Harmonic centrality sums 1/d over reachable nodes. Unreachable nodes contribute nothing, so scores stay meaningful in fragmented systems, boundary-limited lattices, or intermittent sensor links. Optional normalization divides by (N−1), keeping values within a compact and comparable range.
Directed graphs represent one-way transport, driven flows, or asymmetric couplings. Undirected mode mirrors edges, suitable for reciprocal interactions. With direction enabled, reachability can change sharply, producing different centrality rankings even when link weights are identical.
The table shows reachable count, total distance sum, and the selected score. Reachable excludes the source, so the maximum is N−1. Low reachability signals disconnection or direction barriers. Lower distance sums typically indicate a geometrically central node within the network.
Unweighted shortest paths use breadth-first search, while weighted paths use a priority-queue method. Runtime grows with network size, so keep labels concise and avoid duplicates. Exporting CSV or PDF preserves rankings for lab notebooks, peer review, and repeatable comparisons. For large graphs, consider simplifying with thresholds or sampling to test sensitivity. Always document units and weight meaning.
A higher score means the node has shorter average shortest-path distances to others. In many physical networks, that suggests faster access for signals, flows, or diffusion compared with more peripheral nodes.
Use weighted mode when links represent different costs, such as delay, resistance, or attenuation. Enter positive weights that behave like distances, where smaller values mean easier or faster traversal.
Choose normalized or harmonic. Normalized penalizes limited reach explicitly. Harmonic is robust because unreachable nodes contribute zero rather than forcing the full score to zero.
In shortest-path calculations, weights act like distances or costs. If you measured strengths, convert them to costs first, such as using the inverse, so stronger links yield smaller effective distances.
Rows are sorted by centrality from highest to lowest. If centrality values match, nodes are sorted by label. This keeps exports stable for repeated analyses.
Yes. Select matrix input, provide node labels, and paste rows separated by new lines. Use commas or spaces between values, and use zeros where no edge exists.
Standard closeness assumes every other node is reachable. If the graph is disconnected, or direction blocks paths, the strict definition returns zero. Use normalized or harmonic for realistic incomplete data.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.