Dear all,
I think there is a bug in the gs-algo-1.2-git.jar concerning connected components.The ConnectedComponents seems to work well, as their number is good and I can iterate on them.But somehow, when I want to iterate on the nodes of each connected component, each connected component is empty.In my code, the size variable is always 0.Any idea?Here is the code:
ConnectedComponents cc = new ConnectedComponents(g);cc.compute();Iterator<ConnectedComponent> itCC = cc.iterator();while (itCC.hasNext()){ConnectedComponent curCC = itCC.next();Iterator<Node> itNode = curCC.iterator();while (itNode.hasNext()){itNode.next();size++;}System.out.println(size);}
Thanks in advance for your help.
Julien Schleich
Archives gérées par MHonArc 2.6.16.