I am trying to draw a network diagram using tikz-network package. The network needs to have a bi-directional edge between two vertices. The below code creates edges that have one direction. I read the documentation, it does not seem to provide any optons to achieve bi-directional edges. Does any expert have pointers to achieve bi-directional edges?


\tikzset{network x offset/.initial=1ex,network y offset/.initial=1ex,
adjust size/.style={minimum width=width("\vertex@Label")+2*\pgfkeysvalueof{/tikz/network x offset},
minimum height=height("\vertex@Label")+2*\pgfkeysvalueof{/tikz/network y offset}}}



% Parnters
    \Vertex[color=cyan, x=0, y=0, label=A, shape=rectangle, style={adjust size}]{PG}
    \Vertex[color=cyan, x=0, y=-4, label=B, shape=rectangle, style={adjust size}]{PHP}
    \Vertex[color=cyan, x=0, y=-6, label=C, shape=rectangle, style={adjust size}]{PSM}
    \Vertex[color=orange, x=8, y=-2, label=D, shape=rectangle, style={adjust size}]{PRD}
    \Vertex[color=yellow, x=16, y=0, label=A, shape=rectangle, style={adjust size}]{CSTG}
    \Vertex[color=yellow, x=16, y=-4, label=E, shape=rectangle, style={adjust size}]{CSTE} 
    \Vertex[color=yellow, x=16, y=-7, label=A, shape=rectangle, style={adjust size}]{CSTA} 
    \Vertex[color=white, x=24, y=0, label=C, shape=rectangle, style={adjust size}]{CC}    
    \Vertex[color=white, x=24, y=-4, label=S, shape=rectangle, style={adjust size}]{CSPKT}  

% Relationships from Product to Partners
    \Edge[lw=1, Direct, label=D](PRD)(PG)
    \Edge[lw=1, Direct, label=S](PRD)(PHP)
    \Edge[lw=1, Direct, label=U](PRD)(PSM)   

% Relationships from Product to Customers
    \Edge[lw=1, Direct, label=H](PRD)(CSTG)
    \Edge[lw=1, Direct, label=C](PRD)(CSTE)
    \Edge[lw=1, Direct, label=C](PRD)(CSTA)    
% Relationships from Competitors to Customers
    \Edge[lw=1, Direct, label=C](CSTE)(CC)
    \Edge[lw=1, Direct, label=C](CSTE)(CSPKT)


1 Answer 1


You could use for example

\Edge[lw=1, style={latex-latex}, label=D](PRD)(PG)

latex is the arrow tip type used by default for directed edges.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .