我想在 tikz 中制作一个图表,如下所示
但是我想用implies
符号代替箭头。如何才能制作出如上图所示的图形,但以隐含符号(以及not implies
符号)作为边?
答案1
你可以使用double
(implies
注:功劳归于@percusse用于not implie
命令(即degil
)。
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs,decorations.pathmorphing,decorations.markings}
\usetikzlibrary{arrows}
\tikzset{degil/.style={
decoration={markings,
mark= at position 0.5 with {
\node[transform shape] (tempnode) {$\backslash$};
}
},
postaction={decorate}
}
}
\begin{document}
\begin{tikzpicture}[>=stealth,>=implies]
\graph {
a ->[double] {b,c} ->[double,degil] d
};
\end{tikzpicture}
\end{document}
答案2
或许这...
\documentclass[tikz,border=5]{standalone}
\usetikzlibrary{graphs,graphs.standard,arrows}
\tikzgraphsset{
implies/.style={edges={double, double equal sign distance, -implies}},
not implies/.style={implies,
edge node={ node [sloped, xscale=-1] {$\backslash$} }
},
!/.style={not implies}
}
\begin{document}
\tikz\graph [implies] {
a -> {b, c} ->[!] d;
};
\end{document}