将double
属性放在边缘上:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{quotes}
\begin{document}
\begin{tikzpicture}
\node (A) at (1,2) {A};
\node (B) at (3,4) {B};
\draw (A) edge[double,"Label"] (B);
\end{tikzpicture}
\end{document}