Edge Set in LaTeX (E(G))
- LaTeX command
E(G)- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
Edge set of the graph G, the set of all vertex pairs joined by an edge.
E(G) is written explicitly when more than one graph is in scope; its size |E(G)|, also written e(G) or \|G\| in some texts, is the size of the graph. The handshake lemma links it to degrees: \sum_v \deg(v) = 2|E(G)|. A simple graph satisfies |E(G)| \leq \binom{n}{2}, and a tree has exactly n - 1 edges. Be aware that E is heavily overloaded, notably with expectation in probabilistic combinatorics, so blackboard \mathbb{E} for expectation helps keep the two apart.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Edge Set: $E(G)$
\[ |E(G)| \leq \binom{|V(G)|}{2} \]
\end{document}Related symbols
All Grafentheorie →Frequently asked questions
- How do I write Edge Set in LaTeX?
- Type E(G) in math mode, for example $|E(G)| \leq \binom{|V(G)|}{2}$. It works in plain LaTeX without loading any package.
- Which package do I need for E(G)?
- None. E(G) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use E(G) in text mode, or only in math mode?
- Both. E(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 poweredSchrijf LaTeX met AI
Beste AI LaTeX Editor, Overleaf Alternatief
Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI
- Genereer mooie TikZ-diagrammen met AI
- Upload afbeelding en converteer naadloos naar LaTeX
- Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen