Directory graphics/pgf/contrib/tkz-berge
tkz-berge — tools for classic graphs of graph theory
Release 2.30c 2026/11/02
Description
The package tkz-berge.sty is a collection of some useful macros if you want to draw some classic graphs of the graph theory or to make others graphs. The macros are designed to give math teachers (and students) easy access at the programmation of drawing graphs with TikZ. I therefore hope that my packages provide ideal tools for teachers wanting to offer their students fine documents of maths.
With LuaLaTeX, the options lua and 3d of tkz-graph are also options of tkz-berge: computations on the graphs (degrees, shortest path, coloring, Eulerian paths...) and graphs in space with tkz-elements (prototype). Without them the package is unchanged and works with pdfLaTeX.
License
This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, version 1.3c or (at your option) any later version. See the files LICENSE and lppl-1-3c.txt.
This work has the LPPL maintenance status "maintained". The Current Maintainer of this work is Alain Matthes.
Requirements
The package compiles with utf8, pdflatex and lualatex, loads and depends on updated versions of:
The options lua and 3d need LuaLaTeX; 3d also needs tkz-elements 6.10c (2026/11/01) or later.
Installation
The package tkz-berge is present in TeXLive and MiKTeX, use the package manager to install.
You can experiment with the tkz-berge and tkz-graph packages by placing all of the distribution files in the directory containing your current tex file.
How to use it
To use the package tkz-berge, place the following line in the preamble of your LaTeX document:
\usepackage{tkz-berge}
If you use the xcolor package, load that package before tkz-berge to avoid package conflicts.
usepackageusenames,dvipsnames{xcolor} usepackage{tkz-berge}
With LuaLaTeX:
\usepackage[lua]{tkz-berge} % computations on the graphs
\usepackage[3d]{tkz-berge} % graphs in space (and computations)
Documentation
The documentation is in english. Documentation for tkz-berge is available on CTAN.
Examples
All examples given in documentation will be stored on CTAN as standalone files, ready for compilation.
Other examples, in french, are on my site: http://altermundus.fr
History
- 2.2 (2026/10/07) keys with
pgfkeys(through tkz-graph 2.2) instead ofxkeyval. Needs tkz-graph 2.2. - 2.30c (2026/11/02) options
luaand3d(LuaLaTeX), new examples and a gallery in the documentation (with\grHypercubeand\grTree, added in 2.20c). Needs tkz-graph 2.30c.
The full list of changes is in CHANGELOG.md.
Author
Alain Matthes, 5 rue de Valence, Paris 75005, al (dot) ma (at) mac (dot) com
Download the contents of this package in one zip archive (1.3M).
Tkz-berge – Macros for drawing graphs of graph theory
The package is a collection of some useful macros if you want to draw some classic graphs of the graph theory or to make others graphs.
| Package | Tkz-berge |
| Home page | |
| Version | 2.30c 2026-11-02 |
| Licenses | The LaTeX Project Public License 1.3c |
| Copyright | 2007–2026 Alain Matthes |
| Maintainer | Alain Matthes |
| Contained in | TeX Live as tkz-berge MiKTeX as tkz-berge |
| Topics | Tagged PDF – fully compatible Maths PGF TikZ |
| See also | tkz-graph |