JBotSim
JBotSim copied to clipboard
Some links are missing in the complete graph generation
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.
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
KNGeneratordirectly and making sure you use theKNGenerator.setWired(true)method. The wired mode should work properly.
rebased over develop in order to be used as base for other fixes.
merged into develop.