I've found a BUG in Gem Layout.
When all nodes have loop edges following error appears:
java.lang.ArrayIndexOutOfBoundsException: -1 when you try to do Gem
Layout.
How to reproduce:
Load following .gdf file and try to do Gem Layout:
nodedef> name, label, color, strokecolor, labelvisible
n0,"n1","158,176,255","255,255,255",1
n1,"n2","255,255,255","255,255,255",1
n2,"n3","255,255,255","255,255,255",1
edgedef> node1, node2, width, weight, comment VARCHAR
n0,n0,2.0,2.0,""
n1,n1,2.0,10.0,""
n0,n1,2.0,2.0,""
n2,n2,2.0,100.0,""
n0,n2,2.0,2.0,"test"
Please fix fix fix :)
Please compile using 1.0.3 branch
On Sun, May 31, 2009 at 11:23 AM, Borg <b...@uu3.net> wrote:
> Hello.
> I've found a BUG in Gem Layout.
> When all nodes have loop edges following error appears:
> java.lang.ArrayIndexOutOfBoundsException: -1 when you try to do Gem
> Layout.
> How to reproduce:
> Load following .gdf file and try to do Gem Layout:
> nodedef> name, label, color, strokecolor, labelvisible
> n0,"n1","158,176,255","255,255,255",1
> n1,"n2","255,255,255","255,255,255",1
> n2,"n3","255,255,255","255,255,255",1
> edgedef> node1, node2, width, weight, comment VARCHAR
> n0,n0,2.0,2.0,""
> n1,n1,2.0,10.0,""
> n0,n1,2.0,2.0,""
> n2,n2,2.0,100.0,""
> n0,n2,2.0,2.0,"test"
> On Sun, May 31, 2009 at 11:23 AM, Borg <b...@uu3.net> wrote:
> > Hello.
> > I've found a BUG in Gem Layout.
> > When all nodes have loop edges following error appears:
> > java.lang.ArrayIndexOutOfBoundsException: -1 when you try to do Gem
> > Layout.
> > How to reproduce:
> > Load following .gdf file and try to do Gem Layout:
> > nodedef> name, label, color, strokecolor, labelvisible
> > n0,"n1","158,176,255","255,255,255",1
> > n1,"n2","255,255,255","255,255,255",1
> > n2,"n3","255,255,255","255,255,255",1
> > edgedef> node1, node2, width, weight, comment VARCHAR
> > n0,n0,2.0,2.0,""
> > n1,n1,2.0,10.0,""
> > n0,n1,2.0,2.0,""
> > n2,n2,2.0,100.0,""
> > n0,n2,2.0,2.0,"test"
Okey. I was able to fix it.
as I said, it was quite simply.
I tested it and it works fine on few of my layouts.
Basicaly fix just ignores loops.
Here it goes:
> > On Sun, May 31, 2009 at 11:23 AM, Borg <b...@uu3.net> wrote:
> > > Hello.
> > > I've found a BUG in Gem Layout.
> > > When all nodes have loop edges following error appears:
> > > java.lang.ArrayIndexOutOfBoundsException: -1 when you try to do Gem
> > > Layout.