I dont know what a data model is :( I am thinking with one entry, I can have (x,y,z). Z is probably a list and it says to what point it connects to. so it's a list of lists. The problem then becomes: how do I generate a list of possible routes? So I'll potentially have a very big list of routes and then I choose the shortest one?
On Mon, Aug 14, 2017 at 3:31 PM, Mats Wichmann <m...@wichmann.us> wrote: > On 08/14/2017 03:06 PM, Alan Gauld via Tutor wrote: > > > > Forwarding to the list. > > > > -------- Forwarded Message -------- > > > > > > > > > > pic > > http://imgur.com/a/CwA2G > > > > On Mon, Aug 14, 2017 at 8:55 AM, Alan Gauld via Tutor <tutor@python.org > > <mailto:tutor@python.org>> wrote: > > > > On 13/08/17 21:07, Michael C wrote: > > > > > Please look at the picture attached: > > > So in modeling this in your program you need to describe not just the > x,y coordinates, but also the connections. point 1 can only reach point > 2, so it has one link. point 2 can reach 3 and 5, so two links. How can > you describe this in your data model? > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor