Okay I finally got the adjancency list representation working: v = range(1,11) al=zip(v[:-1],v[1:])+[(10,)] Is that right? It works fine. How do I go from here to creating an incidence list representation and adjacency matrix? (is it possible to assign to individual items in each tuple? I guess not). [ for those of you who missed my earlier email, this is not a homework; i'm a graduate student attempting to learn python ]. On 1/28/07, Zeth Green <theology@gmail.com> wrote:
On 29/01/07, Michael Sparks <ms@cerenity.org> wrote:
Is this homework?
I was about to respond with a literal answer but I thought that too. It was the mathematical terminology but especially this bit that made me suspect:
On Sunday 28 January 2007 22:45, Python Freak wrote: Hint: You may find it useful to note that one incidence list representation is...
python-uk mailing list python-uk@python.org http://mail.python.org/mailman/listinfo/python-uk