How can I achieve to draw a line (using double sided arrows) between a node and the middle of a path?
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usepackage{tikzscale}
\usetikzlibrary{arrows,automata,shadows}
\begin{document}
\centering
\tikzstyle{vertex_basic}=[rectangle,thick,top color=white,bottom color=black!20, minimum size=50pt,scale=1]
\tikzstyle{vertex}=[vertex_basic, draw=black!50]
\tikzset{initial text={}}
\begin{tikzpicture}[,>=stealth,ultra thick,black!50,text=black, scale=1.8,graphs/every graph/.style={edges=rounded corners},every new ->/.style={shorten >=1pt},auto]
\matrix[row sep=20mm,column sep=2mm] {
\node (X) [vertex,align=center] {X}; & & \node (Y) [vertex,align=center] {Y}; \\
& \node (O) [vertex,align=center] {Outcome}; &\\
};
\path[<->] (X) edge node[align=center] {} (O);
\path[<->] (Y) edge[densely dotted] node[align=left] {} (O);
\path[<->] (X) edge[densely dotted] node[align=left] {} (Y);
\end{tikzpicture}
\end{document}
The above coded produces the following image (without the red line).

How would it be possible to add a line using the style of the other lines at position of the red line? Thank you!


\draw(short for\path[draw]) is used because I used--instead ofedge,\path (a) -- (b);will create the path, but not draw it. Theedgeoperation works a bit differently, see chapter 17.12 in the manual. See https://tex.stackexchange.com/a/163571/ for an explanation of how amatrix of nodeswork.aliasis just a way of giving an additional name to a node. E.g. with\node [alias=a] (b) {foo};you can use either\draw (a) -- ..or\draw (b) -- ... – Torbjørn T. Dec 07 '17 at 17:04