![增加图中边的厚度](https://linux22.com/image/445352/%E5%A2%9E%E5%8A%A0%E5%9B%BE%E4%B8%AD%E8%BE%B9%E7%9A%84%E5%8E%9A%E5%BA%A6.png)
考虑以下在 Latex 中创建 Petersen 图的 LaTeX 代码
\begin{tikzpicture}[rotate=90]
\GraphInit[vstyle=Hasse]
\SetVertexNormal[LineWidth=.7pt]
\grPetersen[RA=2.4,RB=1.3]
\AddVertexColor{red}{a0,b1,b2,a3}
\AddVertexColor{green}{a1,b0,a4}
\AddVertexColor{blue}{b4,b3,a2}
\end{tikzpicture}
如何增加上图的边缘厚度?
答案1
边缘厚度由 控制\EdgeLineWidth
,初始值为.8pt
。请参阅包的文档tkz-graph
,该包由 自动加载tkz-berge
。
\documentclass{article}
\usepackage{tkz-berge}
\begin{document}
\begin{tikzpicture}[rotate=90]
\renewcommand*{\EdgeLineWidth}{2pt} % default is .8pt
\GraphInit[vstyle=Hasse]
\SetVertexNormal[LineWidth=.7pt]
\grPetersen[RA=2.4,RB=1.3]
\AddVertexColor{red}{a0,b1,b2,a3}
\AddVertexColor{green}{a1,b0,a4}
\AddVertexColor{blue}{b4,b3,a2}
\end{tikzpicture}
\end{document}