Author | Message |
---|---|
rabbott
Posts: 1649
|
Posted 16:51 Apr 26, 2020 |
You can now ask that the paths you generate with the two path generator algorithms (greedy and minimum spanning tree) be printed when they are generated. Rather than try to explain it here, look at the As written the system chooses randomly among a random path, a greedy path, or a minimum spanning tree path. (Stubs for the last two exist, but for now they both call random_path. Part of the assignment is for you to write those methods. The bottom half of As written, the minimum spanning tree links are shown double-width and in green; the path links are shown in red. (I have written a minimum spanning tree function that you can use.) Feel free to change those arbitrary conventions in your version. I suggest that you download the entire current version of PyLog to get the required code. (The code that you have already written should fit the stubs as before.) If you run into problems, post a question on the Forum. (Why do I even bother to suggest this?!) |