I am trying to generate the network topology diagrams and wanted to show circle on two edges to show the PC, VPC connections. Please help me
The big trick is to use a colorlist (colorList | Graphviz) to guarantee parallel lines. Two “white” lines are in the list to produce greater separation between the two black lines.
graph P{
splines=false
ranksep= .25
node [shape=rect]
A B
// sizing set by eyeball
C1 [shape=ellipse width=.35 height=.2 fixedsize=true label=""]
// each edge is drawn as two black lines, separated by two "white" lines
edge [color="black:white:white:black"]
A -- C1 -- B
}
Giving:
2 Likes