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

Try Vertex Set in a real LaTeX document

Open a ready-to-compile document that already uses V(G), with the right packages loaded. Edit it and see the PDF, no install needed.

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

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

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

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

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