tikz 折线 箭头_问一个关于latex中,使用tikz画图的问题,如何使箭头上方的权值不居中(因为居中会互相重叠)...

我的代码:\begin{figure}[H]\begin{center}\begin{tikzpicture}[->,>=stealth',auto,nodedistance=7em,thick,mainnode/.style={circle,fill=blue!2,draw,font=\sffamily\small}]%fon...

我的代码:\begin{figure}[H]\begin{center} \begin{tikzpicture}[->,>=stealth',auto,node distance=7em, thick,main node/.style={circle,fill=blue!2,draw,font=\sffamily\small}] %font=\sffamily\small\bfseries \node[main node] (1) {1}; \node[main node] (2) [right of=1] {2}; \node[main node] (3) [below right of=2] {3}; \node[main node] (4) [below left of=3] {4}; \node[main node] (5) [left of=4] {5}; \node[main node] (6) [below left of=1] {6};\draw (1.20) -- (2.160) node[midway, above] {5};\draw (2.200) -- (1.-20) node[midway, below] {3};\draw (2.-45) -- (3.135) node[midway, above] {4};\draw (5.0) -- (4.180) node[midway, below] {2};\draw (1.-155) -- (6.65) node[midway, above] {-2};\draw (6.25) -- (1.-115) node[midway, below] {3};\draw (6.20) -- (3.160) node[midway, above] {4};\draw (3.200) -- (6.-20) node[midway, below] {4};\draw (1.-90) -- (5.90) node[midway,above] {3~~~~~};\draw (2.-90) -- (4.90) node[midway, above] {3~~~~~};\draw (4.120) -- (1.-55) node[midway, above] {4};\draw (6.-55) -- (4.150) node[midway, above] {-1};\end{tikzpicture}\caption{Signed graph} \label{signed graph_EP}\end{center}\end{figure}

展开

相关资源:latex 画图
表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页