I am currently able to generate a random set of nodes in my project.
The problem that I have is I don't know any efficient way to connect nodes and store their connection data. For example:
The selected node would be #1 and the selected path is in blue. I would use the arrow keys to toggle between the paths and the selected path/connection would change. I would also want the player to be able to select paths behind them to move back (using the same method to toggle between different paths). The nodes have a varying number of connections so I feel that using instance variables for each node would not work well in this case.
Another problem I have is with the random generation not mixing well with the paths/connections. The paths should be evenly distributed so that there aren't nodes with too many connections and there also shouldn't be nodes with no connections. Right now I just have nodes being connected to whatever is closest.
The FTL sector map is how I envision the final result for this project just to give an idea as to what the map is for. Thanks in advance for any help that someone is willing to give.