Representing a Tree in Python

godshorse chinthakawk at gmail.com
Wed May 13 00:10:53 EDT 2009


Hello,

I want to find out the shortest path tree from a root to several nodes
in a graph data structure. I found a Dijkstra code from internet that
finds shortest path between only two nodes. How can i extend it to a
tree?. And what is the best way to represent a tree in Python?.

Thank you,



More information about the Python-list mailing list