答案1
不清楚,指向节点 B 和 C 的箭头从哪里开始。在从节点 1 到节点 2 的路径的 1/3 和 2/3 处?如果是,那么看看以下解决方案是否适合您:
\documentclass[tikz, border=3.141592]{standalone}
\usetikzlibrary{arrows.meta,
positioning}
\begin{document}
\begin{tikzpicture}[
every node/.style = {draw, minimum size=8mm}
]
\node (n1) {1};
\node (n2) [right=3cm of n1] {2};
%
\draw(n1) -- coordinate[pos=1/3] (b)
coordinate[pos=1/2] (a)
coordinate[pos=2/3] (c) (n2);
\draw[Stealth-, blue] (b) --++ (0, 1.5) node[above] {B};
\draw[Stealth-, red] (a) --++ (0,-1.5) node[below] {A};
\draw[Stealth-, blue] (c) --++ (0, 1.5) node[above] {C};
\end{tikzpicture}
\end{document}