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.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기