Vertex Set in LaTeX (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.
\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.