• Post Reply Bookmark Topic Watch Topic
  • New Topic

Random undirected graph generation

 
Kovacs Akos
Ranch Hand
Posts: 86
1
Firefox Browser Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to generate graphs randomly, like this:



I think, that ShapeRenderer in libgdx can help to solve this. I would like to generate randomly x, y coordinates, then draw circles, but I do not know how to draw lines randomly between the circles?
Can you please show me some working tutorials?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!