Clique Number Calculator

ω(G) = max complete subgraph

CalculatorsFreeNo Signup
4.8(369 reviews)
All Tools

Loading tool...

About Clique Number Calculator

A clique number calculator finding ω(G): max complete subgraph size. ω(K_n)=n, ω(K_{m,n})=2, ω(C_n)=2 (n≥4) or 3. Lower bound for χ(G). ω(G)=α(Ḡ). Ramsey: R(s,t) bounds ω. NP-hard in general. Client-side.

Clique Number Calculator Features

  • ω(G) value
  • Clique display
  • Common graphs
  • χ bound
  • Complement α
Clique number ω(G): size of largest complete subgraph. ω(K_n)=n, ω(bipartite)≤2, ω(Petersen)=2. Always ω(G)≤χ(G). Perfect graphs: ω=χ. ω(G)=α(Ḡ) by complement. Finding maximum clique is NP-hard.

How to Use

Select graph:

  • ω(G): Clique number
  • Clique: Example max clique
  • χ bound: ω≤χ

Perfect Graphs

In perfect graphs, ω(G)=χ(G) for every induced subgraph. The Strong Perfect Graph Theorem (2006): G is perfect iff no odd hole or odd antihole induced subgraph. For perfect graphs, ω can be computed in polynomial time!

Algorithms

Exact: Bron-Kerbosch with pivoting O*(3^{n/3}). Approximate: greedy and local search. For special classes (chordal, perfect): polynomial. For general graphs: one of the hardest problems in computational complexity.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Compute ω(G).
  3. 3See max clique.
  4. 4Compare to χ.
  5. 5Check complement.

Clique Number Calculator — Frequently Asked Questions

Why does ω(G) ≤ χ(G)?+

A clique of size ω needs ω distinct colors (all vertices adjacent). So you need at least ω colors. The gap χ-ω can be arbitrarily large: Mycielski graphs have ω=2 but χ→∞. Perfect graphs have equality.

What's the Bron-Kerbosch algorithm?+

A backtracking algorithm that enumerates all maximal cliques. With pivoting, it runs in O(3^{n/3}) time, which is optimal since a graph can have up to 3^{n/3} maximal cliques (Moon-Moser bound). Standard for practical max-clique finding.

Where do cliques appear in practice?+

Social networks (fully connected groups). Bioinformatics (protein interaction clusters). Telecommunications (mutual interference sets). Scheduling (mutually conflicting tasks). Coding theory (maximum codes).

Share this tool: