Please consider offering answers and suggestions to help other students!
And if you fix a problem by following a suggestion here,
it would be great if other interested students could see a short
"Great, fixed it!" followup message.
How do I ask a good question?
Displaying selected article
Showing 1 of 503 articles.
Currently 1 other person reading this forum.
Hello,
I've made a python script that looks at the Transperth timetables and makes an adjacency file, similar to buildrandomtimetables.c, which I can then plug into assignports.sh. I've come across a problem where station A has a hop that goes to station B, but station B does not have any return hops.
My group's protocol assumes that if you can go from A to B, you can also go from B to A, and so A and B are neighbours of each other. This is the true in buildrandomtimetables.c, but it's not true in Transperth's timetables. For example, Leederville_Stn has a single hop to Perth_Stn, but Perth_Stn has no hops back to Leederville_Stn. This is a contradiction of our assumption, and means that Leederville_Stn can send data to Perth_Stn, but Perth_Stn cannot send data to Leederville_Stn (as per the rules).
So, should I change my python script to account for this case, by making both stations adjacent even if there's only a one-way hop, or is it intentional?
Thanks