JBotSim icon indicating copy to clipboard operation
JBotSim copied to clipboard

Some links are missing in the complete graph generation

Open Colette-Johnen opened this issue 4 years ago • 3 comments

When generating a complete graph on n vertices with the topology generator, using TopologyGenerators.generateKN(topology,10), some of the links appear to be missing. This is the case, for example, in the attached picture.

Capture20oct21

Colette-Johnen avatar Oct 29 '21 08:10 Colette-Johnen

Hello Colette. Thank you for the feedback on that feature.

I do confirm it is a bug in the KNGenerator, which is used by the TopologyGenerators utility class with some default settings.

The bug is present when the KNGenerator is used in a non-wired mode. We are going to fix this for the next release but, should you need a temporary workaround:

  • in wireless mode: you can adjust the communication range, by hand (using the graphical menus) or by code. Indeed, it's only a matter of communication range.
  • in wired mode: you might want to use the KNGenerator directly and making sure you use the KNGenerator.setWired(true) method. The wired mode should work properly.

remikey avatar Nov 01 '21 15:11 remikey

rebased over develop in order to be used as base for other fixes.

remikey avatar Nov 04 '21 18:11 remikey

merged into develop.

remikey avatar Nov 15 '21 19:11 remikey