Edge Set in LaTeX (E(G))

E(G)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.

∣E(G)∣≤(∣V(G)∣2)|E(G)| \leq \binom{|V(G)|}{2}
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Edge Set: $E(G)$

\[ |E(G)| \leq \binom{|V(G)|}{2} \]
\end{document}

Related symbols

All Teori Graf →

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 poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian