我有一个问题,不知道如何将这两个箭头放在图片上。您可以看到图片需要怎么做以及我坚持这样做的原因。此外,我还提供了代码,您可以看到我到目前为止所做的工作。感谢您的帮助
\begin{center}
\begin{tikzpicture}
\tikzstyle{vertex}=[circle,fill=black!3]
\tikzstyle{edge}={->,thick}
\node[vertex] (v1) at (1,2) {1};
\node[vertex] (v2) at (2,0) {2};
\node[vertex] (v3) at (0,-2) at {3};
\draw[directed] (v1) -- (v3);
\draw[directed] (v2) -- (v1);
\draw[directed] (v3) -- (v2);
\path (v3) edge [bend left] node[] {}(v1);
\path (v2) edge [bend right] node[] {}(v1);
\draw (1,-0.3) node[bellow]{2};
\draw (0.4,1) node[right]{1};
\draw (1.3,0.8) node[above]{1};
答案1
这是一种方法。
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{decorations.markings,quotes}
\tikzset{->-/.style={decoration={% https://tex.stackexchange.com/a/39282/194703
markings,
mark=at position #1 with {\arrow{>}}},postaction={decorate}},
->-/.default=0.55}
\begin{document}
\begin{tikzpicture}[vertex/.style={circle,fill=black!3},>=stealth,auto,
directed/.style={->-,thick}]
\path foreach \X in {1,2,3}
{ (210-120*\X:2) node[vertex](v\X){$\mathsf{\X}$} };
\path[every edge/.append style={directed},bend angle=15]
(v3) edge[bend left,"$1$"] (v1) edge["$1$"'] (v2)
(v2) edge[bend right,"$1$"'] (v1)
(v1) edge[bend left,"$1$"] (v3)
(v1) edge[bend right,"$1$"'] (v2);
\end{tikzpicture}
\end{document}