Graph Power Calculator

d(u,v) ≤ k → adjacent

CalculatorsFreeNo Signup
4.9(102 reviews)
All Tools

Loading tool...

About Graph Power Calculator

A graph power calculator computing G^k: same vertex set, uv edge iff d_G(u,v)≤k. G^1=G, G^2=square graph, G^∞=K_n (connected G). Fleischner's theorem: G^2 is Hamiltonian if G is 2-connected. Client-side.

Graph Power Calculator Features

  • G^k edges
  • Square G²
  • Cube G³
  • Edge growth
  • Diameter reduction
Graph power G^k: uv adjacent iff d_G(u,v)≤k. G² (square): distance ≤ 2. G³ (cube): distance ≤ 3. diam(G^k) = ⌈diam(G)/k⌉. Fleischner (1974): if G is 2-connected, then G² is Hamiltonian.

How to Use

Select graph and k:

  • G^k: Power graph
  • Edges: Distance ≤ k
  • Diameter: Reduced

Fleischner's Theorem

Every 2-connected graph G has a Hamiltonian square G². This means the square always has a Hamiltonian cycle. The proof is constructive but complex. The theorem doesn't extend to cubes of 1-connected graphs.

Applications

Network design: G^k represents k-hop communication. Frequency assignment: G² models 2-step interference. Graph coloring: χ(G^k) bounds relate to distance coloring. Distributed computing: k-step message passing.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Choose k.
  3. 3Compute G^k.
  4. 4Count new edges.
  5. 5Check diameter.

Graph Power Calculator — Frequently Asked Questions

What's the square graph G²?+

G^2: u,v adjacent iff distance 1 or 2 in G. Every vertex connects to its neighborhood and 2nd neighborhood. G² is always denser than G. For paths: P_n² has edges i-(i+1) and i-(i+2).

When does G^k become complete?+

G^k = K_n when k ≥ diam(G). Since all distances become ≤ k, every pair is adjacent. For K_n: already complete at k=1. For P_n: becomes complete at k=n-1.

How fast do edges grow?+

|E(G^k)| grows monotonically with k. Each step adds edges between pairs at distance exactly k+1. The growth depends on the graph structure: sparse graphs grow slowly, dense graphs quickly reach K_n.

Share this tool: