Zagreb Index Calculator

degree-squared sums

CalculatorsFreeNo Signup
4.5(878 reviews)
All Tools

Loading tool...

About Zagreb Index Calculator

A Zagreb index calculator computing M₁(G) = Σ d(v)² (first Zagreb) and M₂(G) = Σ_{(i,j)∈E} d(i)·d(j) (second Zagreb). Gutman-Trinajstić (1972). Oldest degree-based indices! M₁ correlates with total π-electron energy. Client-side.

Zagreb Index Calculator Features

  • M₁(G)
  • M₂(G)
  • Σd²
  • ΣdᵢdⱼΣ
  • Chemistry
Zagreb indices: M₁(G) = Σ d(v)² (first) and M₂(G) = Σ d(i)·d(j) over edges (second). Gutman-Trinajstić (1972). Among the oldest topological indices in chemical graph theory. M₁ correlates with total π-electron energy and branching.

How to Use

Select graph:

  • M₁: First Zagreb
  • M₂: Second Zagreb
  • Compare: M₁ vs M₂

Chemical Meaning

M₁: total branching contribution. High-degree vertices contribute d² each. M₂: edge-branch coupling. Edges between high-degree vertices contribute most. Both predict thermodynamic properties.

Bounds

M₁ ≥ 4m²/n (Cauchy-Schwarz). M₁(K_n) = n(n-1)². M₂ ≥ M₁²/(2m) (Nordhaus-Gaddum type). Many sharp bounds for trees, unicyclic, bicyclic graphs.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Sum d(v)² for M₁.
  3. 3Sum d(i)·d(j) for M₂.
  4. 4Compare indices.
  5. 5Apply to molecules.

Zagreb Index Calculator — Frequently Asked Questions

Why two Zagreb indices?+

M₁ captures vertex branching (how branched each vertex is). M₂ captures edge coupling (how branched each edge's endpoints are). Together they give a complete degree-based picture.

What's the historical significance?+

Introduced by Gutman and Trinajstić in 1972 — among the first topological indices. Sparked the entire field of degree-based indices. Over 500 papers on Zagreb indices alone.

Relation to other indices?+

Randić: 1/√(dᵢdⱼ). Zagreb M₂: dᵢ·dⱼ. They're 'inverses' conceptually. M₁ = 2Σ edges + Σ d² relates to harmonic index. Zagreb indices form the foundation for augmented Zagreb, hyper-Zagreb, etc.

Share this tool: