Clique in LaTeX (\omega(G))

ω(G)\omega(G)
LaTeX command
\omega(G)
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Clique number of G: the size of the largest complete subgraph contained in the graph.

The clique number is a lower bound on the chromatic number, \omega(G) \leq \chi(G), and graphs where equality holds for every induced subgraph are called perfect. It complements the independence number: \omega(G) = \alpha(\overline{G}), with \overline{G} the complement. Finding it is NP-hard. Use lowercase Greek \omega, not w. The symbol is overloaded elsewhere: little-omega asymptotic notation and \omega(n), the number of distinct prime factors, so a short definition helps in mixed contexts. Turan's theorem bounds the edges of a graph with \omega(G) \leq r.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

ω(G)=α(G‾)≤χ(G)\omega(G) = \alpha(\overline{G}) \leq \chi(G)
\documentclass{article}
\begin{document}
Clique: $\omega(G)$

\[ \omega(G) = \alpha(\overline{G}) \leq \chi(G) \]
\end{document}

Related symbols

All Teori Graf →

Frequently asked questions

How do I write Clique in LaTeX?
Type \omega(G) in math mode, for example $\omega(G) = \alpha(\overline{G}) \leq \chi(G)$. It works in plain LaTeX without loading any package.
Which package do I need for \omega(G)?
None. \omega(G) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \omega(G) in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\omega(G)$ in running text.
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian