Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Working with an array of TreeSet Date: Tue, 10 May 2016 20:14:21 -0400 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <87lh3ijg9u.fsf@Equus.decebal.nl> <87a8jxk3r2.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 11 May 2016 00:10:51 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2d081e2f7155c28005d4472f67c2f43d"; logging-data="28123"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/opYtZrDkQOzPgbFS04DZq" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <87a8jxk3r2.fsf@Equus.decebal.nl> Cancel-Lock: sha1:mO9bpQ+6qtA9cgIgIcHJ4vic2ec= Xref: csiph.com comp.lang.java.programmer:34281 On 5/10/2016 5:22 PM, Cecil Westerhof wrote: > On Tuesday 10 May 2016 18:19 CEST, Marcel Mueller wrote: > [...] >> The more interesting question is why you need an array of TreeSet. >> What is the semantic meaning of from? And what is the meaning of to? > > I am mapping the connections of paths between nodes in a graph. From a > node to a node. Perhaps a Map> or (if there can be more than one Edge from Node X to Node Y) Map> might be a more direct representation? -- esosman@comcast-dot-net.invalid "Don't be afraid of work. Make work afraid of you." -- TLM