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

Try Bipartite in a real LaTeX document

Open a ready-to-compile document that already uses K_{m,n}, with the right packages loaded. Edit it and see the PDF, no install needed.

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 نظرية البيان →

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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث