Planar Graph in LaTeX (G \hookrightarrow \mathbb{R}^2)
- LaTeX command
G \hookrightarrow \mathbb{R}^2- Package
- Add to your preamble:
\usepackage{amssymb} - Mode
- Math mode only
Where it is used
Embedding of a graph G in the plane, where edges meet only at shared endpoints; G is then planar.
The hooked arrow \hookrightarrow conventionally marks an injection or embedding, so G \hookrightarrow \mathbb{R}^2 says G can be drawn in the plane without crossings. Planar graphs satisfy Euler's formula V - E + F = 2 when connected, and simple planar graphs with at least three vertices have at most 3V - 6 edges. Kuratowski's and Wagner's theorems characterize them by forbidding K_5 and K_{3,3}. \hookrightarrow is a relation-spaced arrow; the reverse is \hookleftarrow. Embedding in the sphere is equivalent, and other surfaces are written G \hookrightarrow S_g.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amssymb,amsmath}
\begin{document}
Planar Graph: $G \hookrightarrow \mathbb{R}^2$
\[ G \hookrightarrow \mathbb{R}^2 \implies |E| \leq 3|V| - 6 \]
\end{document}Related symbols
All Graph Theory →Frequently asked questions
- How do I write Planar Graph in LaTeX?
- Type G \hookrightarrow \mathbb{R}^2 in math mode, for example $G \hookrightarrow \mathbb{R}^2 \implies |E| \leq 3|V| - 6$. Load amssymb first with \usepackage{amssymb}.
- Which package do I need for G \hookrightarrow \mathbb{R}^2?
- G \hookrightarrow \mathbb{R}^2 needs amssymb: add \usepackage{amssymb} to your preamble before the document starts.
- Can I use G \hookrightarrow \mathbb{R}^2 in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $G \hookrightarrow \mathbb{R}^2$ in running text.
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