I have a set of areas. And all neighbours should be connected with a line. If I have 10 areas they should be connected with 9 lines to connect them all. I have tried to explain in detail with the attached pdf and in annotations in my workspace.
I have a solution but its not the best solution and could probably be edited to something better. For small amount of data it works. But for large its a heavy process.
The end result should look something like the images below

Alla areas are connected

Alla areas are connected

And there are 1 less line then there is areas