I've re-worked the old drawing code for starlanes to work with the new system. Note that when you define a "gateway", you also define the distance multiplier and its color. For example, a stargate would be not connected, has multiplier of 0 (meaning it takes 1 turn to move to other system with a stargate). A wormhole is connected, has multiplier of 0, and has the color of green. A starlane is connected, has no multiplier (uses default distance), and is white.
You then define which, if any, and amount of each, that a star system can have. So this way, if you dislike starlanes with a passion, you can just remove it from the data files, and the game won't even know it's not there. Likewise with wormholes.
When I got the rendering working, I realized that my connecting algorithm (closest/farthest) didn't exactly work... For this test, each star has a minimum of 2 starlanes, and maximum of 4. So theoretically, each star should be connected to at least one other star, right? Well... here's the result (note that black holes have 50% chance of having a wormhole, so it may connect to a star that have 5% chance of wormhole). I'll need to fix the connecting algorithms, but this is the first screenshot with wormholes!