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

Try Edge Set in a real LaTeX document

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

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

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

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

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

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