Wiener Polarity Index Calculator

pairs at distance 3

CalculatorsFreeNo Signup
4.7(396 reviews)
All Tools

Loading tool...

About Wiener Polarity Index Calculator

A Wiener polarity index calculator computing Wp(G) = |{(i,j) : d(i,j) = 3}|. Wiener (1947). Counts pairs at distance 3. Originally for predicting boiling points of alkanes. Simple yet powerful chemical descriptor. Wp = ½·trace(A³) minus corrections. Client-side.

Wiener Polarity Index Calculator Features

  • Wp(G)
  • d(i,j)=3
  • Wiener '47
  • Boiling pt.
  • Common graphs
Wiener polarity Wp(G) = number of pairs at distance exactly 3. Wiener (1947) — same Wiener who introduced the Wiener index! Wp specifically targets 'polarity' interactions: atoms separated by 3 bonds have strongest polarization effects.

How to Use

Select graph:

  • Wp: Polarity index
  • d=3: Count pairs
  • A³: Trace method

Chemical Polarity

Why distance 3? In alkanes, atoms separated by 3 bonds have maximum polarization interaction (1,4-interactions). These drive boiling point differences. Wp elegantly counts exactly these interactions.

Computation

Wp = ½·(A³)_{trace} - correction. Or simply: BFS from each vertex, count those at distance 3, divide by 2. O(nm) time. For trees: Wp = Σ_{edges} n₁(n-n₁-n₂-n₃) with subtree counts.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2BFS from each vertex.
  3. 3Count d=3 pairs.
  4. 4Divide by 2.
  5. 5Predict boiling pt.

Wiener Polarity Index Calculator — Frequently Asked Questions

Why distance 3 specifically?+

Chemical reason: 1,4-interactions (atoms separated by 3 bonds) create the strongest van der Waals polarization. Closer atoms have covalent interactions, farther ones are too weak. Distance 3 is the 'sweet spot'.

Connected to Wiener index?+

Same Wiener! W = Σ d(i,j) counts all distances weighted. Wp = |{d(i,j)=3}| counts only distance-3 pairs. W is the total, Wp targets the chemically most relevant distance.

Wp for trees?+

Trees have simpler Wp formulas. For paths: Wp(Pₙ) = n-3. Stars: Wp(K_{1,n-1}) = 0 (max distance = 2). Caterpillar graphs have analytical Wp formulas.

Share this tool: