增加图中边的厚度

增加图中边的厚度

考虑以下在 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}

相关内容