In-Degree in LaTeX (\deg^{-}(v))

deg⁡−(v)\deg^{-}(v)
LaTeX command
\deg^{-}(v)
Package
No package needed: built into LaTeX
Mode
Math mode only

Try In-Degree in a real LaTeX document

Open a ready-to-compile document that already uses \deg^{-}(v), with the right packages loaded. Edit it and see the PDF, no install needed.

Where it is used

In-degree of vertex v in a directed graph: the number of arcs ending at v.

In directed graphs each arc contributes one to the out-degree of its tail and one to the in-degree of its head, so \sum_v \deg^-(v) = \sum_v \deg^+(v) = |E|. A source has \deg^-(v) = 0. The superscript minus is the most common convention, though some texts write d^-(v), \deg_{\text{in}}(v), or \mathrm{indeg}(v). Brace the superscript as ^{-} so it is clearly attached. In PageRank and Markov-chain contexts, in-degree is related to how many pages link to a node. Topological sorting via Kahn's algorithm repeatedly removes vertices of in-degree zero.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

∑v∈Vdeg⁡−(v)=∣E∣\sum_{v \in V} \deg^{-}(v) = |E|
\documentclass{article}
\begin{document}
In-Degree: $\deg^{-}(v)$

\[ \sum_{v \in V} \deg^{-}(v) = |E| \]
\end{document}

Related symbols

All نظرية البيان →

Frequently asked questions

How do I write In-Degree in LaTeX?
Type \deg^{-}(v) in math mode, for example $\sum_{v \in V} \deg^{-}(v) = |E|$. It works in plain LaTeX without loading any package.
Which package do I need for \deg^{-}(v)?
None. \deg^{-}(v) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \deg^{-}(v) in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\deg^{-}(v)$ in running text.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

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

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

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