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 그래프 이론 →

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 poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기