News for hackers. Stuff that matters.
Re:How Graphviz thinks the USA is laid out (2021) by zimpenfish on Thursday July 28, 2022 @04:45AM (#32261827)
I tried this with the London tube map in 2004. It was not entirely successful[1].

[1] https://rjp.frottage.org/codeblog/tubemap_20041203_1745.html

Re:How Graphviz thinks the USA is laid out (2021) by ygra on Thursday July 28, 2022 @07:50AM (#32263080)
Typical metro maps are quite complicated to automatically calculate. At least I know of no efficient algorithm and force-directed layout doesn't really work, since you want the stations in roughly the right place, especially relative to other stations. A colleague tried something based on a paper a few years ago [1], alas it only really worked with a commercial ILP solver. We've tried an open-source one a year before that and could only get results in acceptable time for three lines or so.

I think most tube maps are hand-arranged, perhaps with some algorithmic help, but oftentimes you also have to fit a specific aspect ratio or shape (because the greater metropolitan area is also shown on the map, along with fare zones), which I don't think any algorithm currently does well. And the manual approach can result in niceties like the actual circle around the city center here: https://www.rsag-online.de/fahrplan/liniennetzplaene

[1] https://www.yworks.com/blog/automatic-metro-map-generation

Re:How Graphviz thinks the USA is laid out (2021) by alphalima on Thursday July 28, 2022 @05:53AM (#32262357)
I wonder if adding River Thames crossings will improve things. That's a major component of the tube map.
Re:How Graphviz thinks the USA is laid out (2021) by zimpenfish on Thursday July 28, 2022 @11:57AM (#32266096)
Huh, didn't think of that. I'll give it a go later.
Re:How Graphviz thinks the USA is laid out (2021) by sph on Thursday July 28, 2022 @04:52AM (#32261880)
Looks mostly decent, just needs vertical and horizontal mirroring. Also I don't understand the colour choice, sometimes it switches from one to another on the same line (Barking -> Upney).
Re:How Graphviz thinks the USA is laid out (2021) by zimpenfish on Thursday July 28, 2022 @05:50AM (#32262333)
> sometimes it switches from one to another on the same line (Barking -> Upney)

Beats me. I just ran the Perl to convert the list of tubes to the neato format and it made them both green. Maybe I generated the images and then later fixed a bug in the generation? I could probably check but I'd have to resurrect Trac from 18 years ago and ... uh.

(See also EastCote and Eastcote on the map where there's now only EastCote in the data file.)

Re:How Graphviz thinks the USA is laid out (2021) by samstave on Thursday July 28, 2022 @05:53AM (#32262359)
November 2005

[ Note: this is where I lost interest and stopped writing. ]

Re:How Graphviz thinks the USA is laid out (2021) by zimpenfish on Thursday July 28, 2022 @12:00PM (#32266137)
I probably broke hobix with a Ruby upgrade and started a spiral into blog engine madness...