Algorithmic Graph Drawing in TikZ

最近在写模板时需要画个图 ("图论"的"图"). 本来打算用Windows画图 (mspaint) 的, 但是效果不好, 还是决定用LaTeX的TikZ画. 这里先开个坑.

Graph drawing in TikZ began as a student's project under my supervision. Renee Ahrens, Olof-Joachim Frahm, Jens Klutting, Matthias Schulz, and Stephan Schuster wrote the first prototype of a graph drawing system inside TikZ that uses LuaTeX for the implementation of graph drawing algoritms. --- Till Tantau

Overview

TikZ Library graphdrawing

\usetikzlibrary{graphdrawing}

This package provides capabilities for automatic graph drawing. It requires that the document is typeset using LuaTeX. This package should work with LuaTeX 0.54 or higher.

"Users" of the graph drawing engine can invoke the graph drawing algorithms often by just adding a single option to their picture. Here is a typical example, where the layered layout option tells TikZ that the graph should be drawn ("should be laid out") using a so-called "layered graph drawing algorithm".

\tikz
\graph [layered layout, <other options>]
{
}
posted @   Pat  阅读(358)  评论(0编辑  收藏  举报
编辑推荐:
· 从二进制到误差:逐行拆解C语言浮点运算中的4008175468544之谜
· .NET制作智能桌面机器人:结合BotSharp智能体框架开发语音交互
· 软件产品开发中常见的10个问题及处理方法
· .NET 原生驾驭 AI 新基建实战系列:向量数据库的应用与畅想
· 从问题排查到源码分析:ActiveMQ消费端频繁日志刷屏的秘密
阅读排行:
· Windows桌面应用自动更新解决方案SharpUpdater5发布
· 我的家庭实验室服务器集群硬件清单
· C# 13 中的新增功能实操
· Supergateway:MCP服务器的远程调试与集成工具
· Vue3封装支持Base64导出的电子签名组件
点击右上角即可分享
微信分享提示