Graphs in latex

by jane   Last Updated August 14, 2019 15:20 PM

I am trying to build some kind of a tree, but in its node instead of a symbol I want to put a framebox. Also, in that framebox at a specific position I want an other framebox. While I couldn't find a way to use the tree structure that exists in latex in order to do so, I started putting frameboxes at the positions that I wanted. Thus, I built the following, but now I don't know how too draw a line that connects each $b_i$ to the s.

\begin{figure}

\setlength{\unitlength}{0.06in}
\centering
\begin{picture}(70,50)
    \put(25,35){\framebox(14,10){\Large server} }
    \put(0,5){\framebox(14,10){\Large browser 1}}
    \put(25,5){\framebox(14,10){\Large browser 2}}
    \put(50,5){\framebox(14,10){\Large browser 3}}
    \put(30.5,35){\framebox(3,3){s}}
    \put(5.5,12){\framebox(3,3){$b_1$}}
    \put(30.5,12){\framebox(3,3){$b_2$}}
    \put(55.5,12) {\framebox(3,3){$b_3$}}


\end{picture}   

\end{figure}



Related Questions


Tree Pruning and Cost-complexity

Updated April 17, 2019 16:20 PM

Can we have an infinite tree in this graph?

Updated March 15, 2019 00:20 AM

Laplacian eigenvalues of trees

Updated January 08, 2018 06:20 AM