From: Nick E. <nic...@gm...> - 2012-12-10 17:26:15
|
Ernst, Ah yes, I had foolishly left the auto-generated delegated .equals() to the String contained in the vertex, but then that String did not equal the encapsulating object it was being compared against! It is working as expected now. Thanks, Nick On 10 December 2012 16:13, H.N. de Ridder <hnr...@gr...> wrote: > On Wed, Dec 05, 2012 at 11:44:43AM +0000, Nick England wrote: > > > I have just started using JGraphT and have got it to produce a graph from > > my data. I can get the edgeSet().size() and vertexSet().size fine, but > if I > > try to calculate the Chromatic number I get 1 no matter what the number > of > > edges and vertices! > > My guess would be you got hit by this: > https://github.com/jgrapht/jgrapht/wiki/EqualsAndHashCode > > Regards, > Ernst > > -- > Information System on Graph Classes and their Inclusions (ISGCI) > http://www.graphclasses.org > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > |