Ich habe bisher diesen Code erstellt:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}
\path
node (A) {$A$}
(0:4cm) node (B) {$B$}
(-60:4cm) node (C) {$C$};
\path[-stealth]
(A) edge [bend right] node [left] {} (C)
(C) edge node [right] {} (A)
(B) edge node [right] {} (C)
(C) edge [bend right] node [left] {} (B)
([yshift=-2.5pt]A.east) edge node [above,yshift= 1.0ex] {} ([yshift=-2.5pt]B.west)
([yshift= 2.5pt]B.west) edge node [below,yshift=-1.0ex] {} ([yshift= 2.5pt]A.east);
\end{tikzpicture}
\end{document}
Und das Ergebnis sieht so aus:
Ich brauche jedoch einige durchgestrichene Pfeile, beispielsweise von C nach B, von C nach A und von A nach B. Wie kann ich diese erstellen? Und wenn es möglich ist, kann ich dort gerade Pfeile anstelle der gebogenen erstellen? Prost!
Antwort1
Sie können die Gradanker von Knoten in Kombination mitDasAnsatz. So:
\documentclass[tikz,border=5mm]{standalone}
\usetikzlibrary{decorations.markings}
\tikzset{every node/.style={circle},
strike through/.append style={
decoration={markings, mark=at position 0.5 with {
\draw[-] ++ (-2pt,-2pt) -- (2pt,2pt);}
},postaction={decorate}}
}
\begin{document}
\begin{tikzpicture}
\path node (A) {$A$}
(0:4cm) node (B) {$B$}
(-60:4cm) node (C) {$C$};
\path[-stealth]
(A.315) edge [strike through] (C.105)
(C.135) edge (A.285)
(B.255) edge (C.45)
(C.75) edge [strike through] (B.225)
(B.165) edge (A.15)
(A.345) edge [strike through] (B.195);
\end{tikzpicture}
\end{document}
Antwort2
so was?
\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{arrows, positioning}
\begin{document}
\begin{tikzpicture}[
node distance = 34mm and 17mm
]
\node (A) {$A$};
\node (C) [below right=of A] {$C$};
\node (B) [above right=of C] {$C$};
\path[-stealth]
(A) edge [bend right] (C)
(C) edge node[sloped] {$|$} (A)
(B) edge [bend left] (C)
(C) edge node[sloped] {$|$} (B)
([yshift=-2.5pt] A.east) edge ([yshift=-2.5pt] B.west)
([yshift= 2.5pt] B.west) edge ([yshift= 2.5pt] A.east);
\end{tikzpicture}
\end{document}