Re: [jgrapht-users] Limited edges number?
Brought to you by:
barak_naveh,
perfecthash
From: Julian T. <jul...@gm...> - 2015-01-18 16:17:42
|
Hi Boris, I'd take a guess that you're using Integer objects to identify nodes, and being caught by Java's curious habit of autoboxing Integers up to 127 only. See this reference: http://bexhuff.com/2006/11/java-1-5-autoboxing-wackyness . This wouldn't explain why your limit is 50 and not 127, but there may be some arithmetic jiggery-pokery in your code that pushes some important integer into the 127 / 128 range. My apologies if you're my grandmother and you already know how to suck eggs. Julian Tuck On Fri, Jan 16, 2015 at 9:07 AM, Bartek Borucki <bor...@gm...> wrote: > Hi, > I've creating an Android project using JgraphT. It works fine except one > thing, why can't I add more than 50 edges to WightedGraph like this: > defaultWeightedEdge = (DefaultWeightedEdge) graph.addEdge(fromNode, > toNode); ? > > Thanks in advance for all replies. > Bartek > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > > |