Bipartite in LaTeX (K_{m,n})
- LaTeX command
K_{m,n}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Complete bipartite graph: two parts of sizes m and n with every vertex in one part joined to every vertex in the other.
K_{m,n} has m + n vertices and mn edges, and K_{1,n} is the star graph. K_{3,3}, the utility graph, is one of Kuratowski's two forbidden subgraphs for planarity. Note that the comma sits inside the braces: K_{m,n}; writing K_m,n puts n on the baseline. TeX adds a little space after the comma in subscripts, which looks fine; for a tighter look, some write K_{m\,n} without a comma, but that is rare. The Zarankiewicz problem asks how many edges a graph can have without containing a copy of K_{s,t}.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Bipartite: $K_{m,n}$
\[ |E(K_{m,n})| = mn, \quad K_{3,3} \text{ is not planar} \]
\end{document}Related symbols
All Grafentheorie →Frequently asked questions
- How do I write Bipartite in LaTeX?
- Type K_{m,n} in math mode, for example $|E(K_{m,n})| = mn, \quad K_{3,3} \text{ is not planar}$. It works in plain LaTeX without loading any package.
- Which package do I need for K_{m,n}?
- None. K_{m,n} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use K_{m,n} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $K_{m,n}$ in running text.
Beste AI LaTeX Editor, Overleaf Alternatief
Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI
- Genereer mooie TikZ-diagrammen met AI
- Upload afbeelding en converteer naadloos naar LaTeX
- Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen