Clique in LaTeX (\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.
\documentclass{article}
\begin{document}
Clique: $\omega(G)$
\[ \omega(G) = \alpha(\overline{G}) \leq \chi(G) \]
\end{document}Related symbols
- Independent Set
\alpha(G) - Chromatic Number
\chi(G) - Matching
M - Forest
F - Planar Graph
G \hookrightarrow \mathbb{R}^2 - Tree
T
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.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers