Harary Index Calculator

reciprocal distance sum

CalculatorsFreeNo Signup
4.5(598 reviews)
All Tools

Loading tool...

About Harary Index Calculator

A Harary index calculator computing H(G) = Σ_{i<j} 1/d(i,j) where d(i,j) is shortest path distance. Ivanciuc, Balaban, Ivanciuc (1993). Reciprocal distance sum. Higher H = more compact. Measures network accessibility. Client-side.

Harary Index Calculator Features

  • H(G)
  • Σ1/d(i,j)
  • Compact
  • Reciprocal
  • Common graphs
Harary index H(G) = Σ 1/d(i,j) over all pairs. Reciprocal of distance: nearby pairs contribute most. Higher H = more compact graph. Named after Frank Harary. Correlates with molecular surface area and biological activity.

How to Use

Select graph:

  • H: Harary index
  • 1/d: Per pair
  • Compact: Quality

H vs Wiener

Wiener W = Σ d(i,j): sum of distances. Harary H = Σ 1/d(i,j): sum of reciprocal distances. W penalizes distant pairs; H rewards nearby pairs. H and W give complementary structural information.

Bounds

K_n: H = n(n-1)/2 (maximum, all distances = 1). P_n: H = Σ_{k=1}^{n-1} (n-k)/k (harmonic-like sum). Star: H = (n-1) + (n-1)(n-2)/4.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Compute distances.
  3. 3Sum reciprocals.
  4. 4Compare compactness.
  5. 5Apply to molecules.

Harary Index Calculator — Frequently Asked Questions

Why reciprocal distances?+

Close pairs (d=1) contribute 1. Diameter pairs contribute 1/diam. This naturally weights local structure more heavily. Useful when nearby interactions dominate (molecular, social).

Relation to Wiener index?+

Wiener = Σ d(i,j), Harary = Σ 1/d(i,j). For complete graphs: W = n(n-1)/2, H = n(n-1)/2 (both equal since d=1 everywhere). For sparse graphs: W large, H small. They're 'dual' measures.

Chemical applications?+

H predicts: boiling point, molecular volume, biological activity (IC50). Often outperforms Wiener for compact molecular properties because it naturally downweights distant atom pairs.

Share this tool: