假设我有以下图表:
\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{fullpage}
\usepackage[upright]{fourier}
\usepackage{tkz-graph}
\usetikzlibrary{arrows}
\thispagestyle{empty}
\begin{document}
\SetVertexNormal[Shape = circle,
LineWidth = 1pt]
\SetUpEdge[lw = 1pt,
color = black,
labelcolor = white,
labelstyle = {sloped,text=black}]
\begin{center}
\begin{tikzpicture}
\Vertex[x=0 ,y=0]{A}
\Vertex[x=3 ,y=3]{B}
\tikzset{EdgeStyle/.style={->}}
\Edge[label = $1$](A)(B)
\end{tikzpicture}
\end{center}
\end{document}
我知道如何更改顶点填充颜色和顶点文本颜色,但我希望能够更改顶点实际轮廓的颜色 - 即此代码中的顶点应具有红色轮廓。有什么想法吗?
答案1
LineColor=red
您应该在\SetVertexNormal
命令中添加选项。