Neighborhood Harmonic Calculator

second-order harmonic index

CalculatorsFreeNo Signup
4.5(62 reviews)
All Tools

Loading tool...

About Neighborhood Harmonic Calculator

A neighborhood harmonic index calculator computing NH(G) = Σ_{(u,v)∈E} 2/(S(u)+S(v)) where S(v) = Σ d(neighbors). Mondal-De-Pal (2019). Second-order harmonic: uses S(v) instead of d(v). Emphasizes edges between low-S vertices. Client-side.

Neighborhood Harmonic Calculator Features

  • NH(G)
  • 2/(S+S)
  • 2nd-order
  • Mondal '19
  • Common graphs
Neighborhood harmonic NH(G) = Σ 2/(S(u)+S(v)) over edges. S(v) = Σd(neighbors). Second-order version of classical harmonic H. Mondal-De-Pal (2019). NH emphasizes edges where BOTH endpoints have low neighborhood degree sums.

How to Use

Select graph:

  • NH: Neighbor harmonic
  • 2/(S+S): Per edge
  • vs H: Compare

NH vs H

H = Σ2/(d+d): first-order. NH = Σ2/(S+S): second-order. NH is much smaller than H because S(v) ≥ d(v). NH discriminates better among graphs with similar degree sequences.

Bounds

For d-regular: NH = m·2/(2d²) = m/(d²). Compare H = m·2/(2d) = m/d. NH decreases as d² — more sensitive. NH(K_n) = n(n-1)/2 · 1/(n-1)² = n/(2(n-1)).

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Compute S(v) for each vertex.
  3. 3For each edge: 2/(S(u)+S(v)).
  4. 4Sum all terms.
  5. 5Compare with H.

Neighborhood Harmonic Calculator — Frequently Asked Questions

NH much smaller than H?+

Yes! S(v) ≥ d(v) always, so S(u)+S(v) ≥ d(u)+d(v), meaning 2/(S+S) ≤ 2/(d+d). NH ≤ H. The difference measures how much neighborhood info is lost by using only degrees.

When NH ≈ H?+

When S(v) ≈ d(v) for all v — i.e., all neighbors have degree 1. This happens only in star-like graphs where the hub's neighbors are leaves.

Discrimination power?+

NH can distinguish graphs that H cannot. Example: two graphs with same degree sequence but different neighborhood structures have identical H but different NH.

Share this tool: