GraphStream Users

Archives de la liste Aide

IdAlreadyInUseException While Using BarabasiAlbertGenerator

Chronologique Discussions 
  • From: "Jacob M. H. Smith" <jacob.m.h.smith AT>
  • To: graphstream-users AT
  • Subject: IdAlreadyInUseException While Using BarabasiAlbertGenerator
  • Date: Fri, 13 Sep 2013 10:06:17 +0200


I'm using GraphStream 1.2 and I'm having the following problem.

I use the BarabasiAlbertGenerator to populate my graph like this:

/* ============================================== */
Generator generator = new BarabasiAlbertGenerator();
for (int i = 0; i < 100; i++) {
/* ============================================== */

Later in my program I call the graph's clear() method and do the same thing
again. The second time I get an IdAlreadyInUseException.

What am I doing wrong? Am I using the generator or the graph in a way that
wasn't intended?

Best regards,

Archives gérées par MHonArc 2.6.16.

Top of page