Hi everyone
I love three things: Simutrans, train/transport network graphs and programming, so writing an utility script that draws those network graphs for my Simutrans games was an obvious thing for me to do.
So far it outputs either (ugly) ASCII or (also ugly) PNGs, doesn't handle 'complex' graphs yet and there's no text/colors on the pictures, but hey, I got something:
ASCII Output:
Sakai Metro
~~~~~~~~~~~
###---***---***---***---***
\
***
|
### ###---***---***---***---***---###---***---###
\ |
*** ***
\ |
*** ### ***
\ | |
###---***---***---***---***---***---***---###---***---***---###---***---***---***---###
/ |
*** ***
/ |
*** ***
/ |
*** ***
/ |
### ***
|
***
|
***
|
###
PNG Output (EDIT: Now with colors, EDIT2: Now with legend):

Next up will be naming of 'major' Stations (the big black dots, where several lines join or cross and the end stations of lines),
correctly handling line colors,
a legend for the line colors, and titles for PNGs.
Currently it takes it's input from a yaml file that looks like this:
name: Sakai Metro
lines:
- name: Aomorisen
color: darkgreen
stations: Sagamihara - A16 v> Sagamihara - A15 v> Sagamihara - A14 v> Aomori Eki > Aomori - A12 / U12 > Nagasaki Eki > Hamamatsu Eki > Okayama - A11 / U11 > Okayama - A10 / U10 > Okayama - O1 / A9 / U9 > Okayama Eki (Sakai Shinkansen Terminal) > Nishi-Okayama Eki > Higashi-Sakai Eki > Sakai Eki > Sakai T6 / A4 / U4 > Takamatsu - T7 / A3 / U3 > Takamatsu Eki > Takamatsu - T9 / A1 / U1
- name: Utsunomiyasen
color: green
stations: Utsunomiya - U18 ^> Utsunomiya - U17 ^> Utsunomiya - U16 ^> Aomori - U15 ^v> Aomori - U14 ^> Aomori Eki > Aomori - A12 / U12 > Nagasaki Eki > Hamamatsu Eki > Okayama - A11 / U11 > Okayama - A10 / U10 > Okayama - O1 / A9 / U9 > Okayama Eki (Sakai Shinkansen Terminal) > Nishi-Okayama Eki > Higashi-Sakai Eki > Sakai Eki > Sakai T6 / A4 / U4 > Takamatsu - T7 / A3 / U3 > Takamatsu Eki > Takamatsu - T9 / A1 / U1
- name: Kakogawasen
color: saddlebrown
stations: Toyota - K1 > Toyota - K2 > Toyota - K3 / MM6 > Nishi-Toyota Eki > Toyota - K5 > Higashi-Toyota Eki > Sakai - K7 > Kakogawa Eki
- name: Nanbokusen
color: turquoise
stations: Toyota - N1 > Toyota - N2 / TR8 > Toyota - N3 > Naka-Toyota Eki > Toyota - N5 v> Toyota - N6 v Higashi-Toyota Eki v Sakai - N8 / SM5 / S8 v Sakai - N9 / S7 v Sakai Eki v Sakai - N11 v Sakai - N12 v Kawaguchi - N13 v Kawaguchi - N14 v Kawaguchi - N15 v Kawaguchi Eki v Kawaguchi - N17
- name: Tozaisen
color: pink
stations: Okayama - T1 / MM1 v Okayama Eki (Sakai Shinkansen Terminal) > Nishi-Okayama Eki > Higashi-Sakai Eki > Sakai Eki > Sakai T6 / A4 / U4 > Takamatsu - T7 / A3 / U3 > Takamatsu Eki > Takamatsu - T9 / A1 / U1
The ultimate goal is to somehow extract all that info from simutrans savefiles.
Once I get the initial version to work (no savefile support yet), I'll release the sourcecode with docs on how to use it as well as probably a small website that runs the script for you

Just thought I'd share this little sneak peak at what the bored me does.