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 Graph Theory →

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 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