Is there a way to draw a dashed pattern between two nodes taking the middle point of these two nodes as the center point?
This is my code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsthm,amsmath,amssymb,authblk,tikz,graphicx}
\usetikzlibrary{shapes,decorations,circuits.logic.US,circuits.logic.IEC,fit,external}
\tikzstyle{loosely dashed}=[dash pattern=on 4pt off 8pt]
\tikzstyle{loosely dashed2}=[dash pattern=on 4pt off 8pt]
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}[every node/.style = {draw=none, text=black, circle, minimum size = 13mm, fill=gray!25}]
\path
(0,3) node(y) {$Y$}
(-1.5,0) node[draw, line width=1pt](x1) {$X_1$}
(1.5,0) node[draw, line width=1pt](x2) {$X_2$};
\draw [line width=1pt,-,black] (y) -- (x1);
\draw [line width=1pt,-,black] (y) -- (x2);
\draw [line width=3pt,-,loosely dashed,black] (x1) to[bend right=40] (x2);
\end{tikzpicture}
\end{figure}
\end{document}
And the resulting figure:
It can clearly be seen that the dash from the X1 node is longer than that from the X2 node.
I want the right part of the dashed line to be the mirror image of the left part. Is there a way to do this (preferably regardless of the distance between the nodes, and the thickness or specific pattern of the line)?



\draw [line width=3pt,-,loosely dashed,black] (x1.east) to[bend right=40] (x2.west);– CarLaTeX Apr 02 '19 at 11:02\draw [line width=3pt,-,loosely dashed,black] (x1.south east) to[bend right=40] (x2.south west);) – Joost Apr 02 '19 at 11:08