[pstricks] Drawing graphs
Paulo J. Matos
pocmatos at gmail.com
Sat Mar 18 19:48:37 CET 2006
On 18/03/06, Francisco A. S. Grossi <fgrossi at usp.br> wrote:
> You can use pstree just you ould define a tree (a tree is compose of two
> subtrees) and not be concerned AT ALL with node position. PSTRICKS does it
> for you.
>
I can draw trees with no problems at all but I want to draw graphs.
What should I use for graphs?
Cheers,
Paulo Matos
> \usepackage{pst-tree}
>
> \begin{document}
> \begin{figure}[H]\centering
> \psset{linecolor=blue,levelsep=1.2,treesep=1}
> \pstree{\Tcircle{\red A}}{
> \pstree{\Tcircle{\red B}}{
> \pstree{\Tcircle{\red C}}{
> \Tcircle{\red D}
> \Tcircle{\red E}
> }
> \pstree{\Tcircle{\red F}}{
> \Tcircle{\red G}
> }
> \Tcircle{\red H}
> }
> \pstree{\Tcircle{\red I}}{
> \pstree{\Tcircle{\red J}}{
> \Tcircle{\red K}
> \Tcircle{\red L}
> }
> \Tcircle{\red M}
> \Tcircle{\red N}
> }
> \pstree{\Tcircle{\red O}}{
> \pstree{\Tcircle{\red P}}{
> \Tcircle{\red Q}
> \Tcircle{\red R}
> \Tcircle{\red S}
> \Tcircle{\red T}
> }
> \Tcircle{\red U}
> \Tcircle{\red V}
> }
> }
> \end{figure}
>
> Francisco
>
> ----- Original Message -----
> From: "Paulo J. Matos" <pocmatos at gmail.com>
> To: <pstricks at tug.org>
> Sent: Saturday, March 18, 2006 12:16 PM
> Subject: [pstricks] Drawing graphs
>
>
> > Hi all,
> >
> > Is there any higher-level environment in pstricks for drawing graphs
> > like \pstree, or not? I have Latex Graphics Companion but defining
> > graphs like the ones they have here requires me to define a position
> > for each node which is not nice. Is there any other way?
> >
> > Cheers,
> > --
> > Paulo Jorge Matos - pocm at sat inesc-id pt
> > Web: http://sat.inesc-id.pt/~pocm
> > Computer and Software Engineering
> > INESC-ID - SAT Group
> > _______________________________________________
> > pstricks mailing list
> > pstricks at tug.org
> > http://tug.org/mailman/listinfo/pstricks
> >
>
>
--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group
More information about the PSTricks
mailing list