Bipartite in LaTeX (K_{m,n})

Km,nK_{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.

∣E(Km,n)∣=mn,K3,3 is not planar|E(K_{m,n})| = mn, \quad K_{3,3} \text{ is not planar}
\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 Graph Theory →

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.
Math poweredSumulat ng LaTeX gamit ang AI

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