Hoekpunten, randen, adjacentie, paden, cycli en chromatische getallen.
Graph theory notation in LaTeX is mostly standard letters and built-in operators. A graph is G = (V, E), adjacency is u \sim v, the degree of a vertex is \deg(v) (the \deg operator is built in), and complete and complete bipartite graphs are K_n and K_{m,n}. Graph invariants use Greek letters: chromatic number \chi(G), clique number \omega(G), independence number \alpha(G), and maximum and minimum degree \Delta(G) and \delta(G). To draw the graph itself, use TikZ. The table lists the graph theory symbols people use most; all are built in, and the full list follows below.
| Symbol | Command | Use | Package | Copy |
|---|---|---|---|---|
G = (V, E) | Graph with vertex set V and edge set E | built in | ||
u \sim v | u is adjacent to v | built in | ||
\deg(v) | Degree of a vertex | built in | ||
\deg^{+}(v) | Out-degree (\deg^{-} for in-degree) | built in | ||
N(v) | Neighbourhood of v | built in | ||
K_n | Complete graph | built in | ||
K_{m,n} | Complete bipartite graph | built in | ||
\chi(G) | Chromatic number | built in | ||
\omega(G) | Clique number | built in | ||
\alpha(G) | Independence number | built in | ||
\Delta(G) | Maximum degree (\delta(G) for minimum) | built in | ||
G \cong H | Isomorphic graphs | built in |
Place vertices as nodes and connect them with \draw. The TikZ graphs library and the tkz-graph package offer shorter syntax for larger graphs:
\usepackage{tikz}
\begin{tikzpicture}
\node[circle,draw] (a) at (0,0) {a};
\node[circle,draw] (b) at (2,0) {b};
\node[circle,draw] (c) at (1,1.5) {c};
\draw (a) -- (b) -- (c) -- (a);
\end{tikzpicture}eG = (V, E)V(G)E(G)u \sim v\deg(v)\deg^{-}(v)\deg^{+}(v)P_nC_nK_{m,n}A_{ij}u \leftrightarrow vT\chi(G)\omega(G)\alpha(G)G \hookrightarrow \mathbb{R}^2