> How about using JTree? That's what we use to store our trees, though
> I'm not certain how suitable they are to standard graph-theoretic
> algorithms.
JTree is a UI element. You could use DefaultTreeNode, I suppose.
> On Fri, 8 Jan 1999, dog wrote:
>
> thomas down wrt:
> > > I need to generate a tree structure in my Java app. The size of
> > > the tree cannot determined until runtime. THe idea i have is to store the
> > > tree as an array using the Vector class. Before i start implementation, i
> > > want to ask if there is an alternative approach to this?