I'm trying to create a procedurally generated dungeon based game. I have a set of rooms and I have the x,y coordinates of their midpoints.
What's the best way to create a connected graph based on these rooms' x,y coordinates?
I'm coding in C#, but feel free to post some pseudocode.
Edit: Edges may overlap. I previously said that I don't want edges to overlap but overlapping edges should be fine. I apologize for the confusion.
Thanks!
See the image: I want to connect the red rooms in a graph data structure.