Incidence Matrix in LaTeX (B)

BB
LaTeX command
B
Package
No package needed: built into LaTeX
Mode
Text and math mode

Try Incidence Matrix in a real LaTeX document

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

Where it is used

Capital B, conventionally the incidence matrix of a graph, with rows for vertices and columns for edges.

For an undirected graph, B_{ve} = 1 when vertex v is an endpoint of edge e. For a directed or arbitrarily oriented graph, entries are -1 at the tail and +1 at the head (or the reverse, depending on the author), and then BB^\top = L = D - A, the graph Laplacian. Some books call the matrix M or N instead of B. It is an n \times m matrix, so state dimensions. For an unoriented incidence matrix, BB^\top equals D + A, the signless Laplacian, a frequent source of sign mistakes.

Minimal compilable example

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

BB⊤=D−A=LB B^{\top} = D - A = L
\documentclass{article}
\begin{document}
Incidence Matrix: $B$

\[ B B^{\top} = D - A = L \]
\end{document}

Related symbols

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

Frequently asked questions

How do I write Incidence Matrix in LaTeX?
Type B in math mode, for example $B B^{\top} = D - A = L$. It works in plain LaTeX without loading any package.
Which package do I need for B?
None. B is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use B in text mode, or only in math mode?
Both. B 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 بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث