Vertex Set in LaTeX (V(G))

V(G)V(G)
LaTeX command
V(G)
Package
No package needed: built into LaTeX
Mode
Text and math mode

Where it is used

Vertex set of the graph G, written as a function of G when several graphs are discussed.

V(G) makes clear which graph a vertex set belongs to, important when comparing a graph with a subgraph H, where V(H) \subseteq V(G). The order of the graph is |V(G)|, often abbreviated n or |G|. For complements and line graphs, V(\overline{G}) = V(G) while V(L(G)) = E(G). Plain italic V is standard; there is no special command needed. Write set-builder definitions with \{ \} braces and use \mid or a colon for the condition. A vertex count in a sum reads \sum_{v \in V(G)}.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

V(H)⊆V(G),∣V(G)∣=nV(H) \subseteq V(G), \quad |V(G)| = n
\documentclass{article}
\begin{document}
Vertex Set: $V(G)$

\[ V(H) \subseteq V(G), \quad |V(G)| = n \]
\end{document}

Related symbols

All Graph Theory →

Frequently asked questions

How do I write Vertex Set in LaTeX?
Type V(G) in math mode, for example $V(H) \subseteq V(G), \quad |V(G)| = n$. It works in plain LaTeX without loading any package.
Which package do I need for V(G)?
None. V(G) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use V(G) in text mode, or only in math mode?
Both. V(G) compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
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