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 グラフ理論 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得