Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Which data structure would you recommend? Date: Fri, 09 Jan 2015 18:36:47 -0500 Organization: A noiseless patient Spider Lines: 7 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 9 Jan 2015 23:38:30 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="c50a9e5d554cfaba13eda1c71e805135"; logging-data="19164"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WOWVAcLaClbuEkeV/vQIDmExuLpB/jIk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 In-Reply-To: Cancel-Lock: sha1:SDfuCV0LHKYhFHPU11fpyR8/CY0= Xref: csiph.com comp.lang.java.programmer:30670 On 01/08/2015 05:25 PM, Doug Mika wrote: > Hi > > I need to create a structure similar to a tree but the tree can have two parent nodes and has 2 child nodes. The nodes are to be of arbitrary class type. It would be nice if I could traverse the data structure from parent to node, and that I could reach any node by its "key" or "name". Which data structure would you recommend? >