Help me traverse a network of data.
February 12, 2009 4:11 AM
Subscribe
Data/Python/Other programming filter: How do I construct and traverse a simple network of data?
I have a large list of numbered nodes, with corresponding values between them. I would like to be able to find out the total value between any two nodes. For example:
n1 to n2 = 5
n2 to n3 = 2
n2 to n4 = 6
So the total of n1 to n4 = 5 + 6, and the total of n1 to n3 = 5 + 2.
I am struggling to figure out exactly what this problem would be called to google it. I have been having a play in python but can't quite figure out how to approach the problem.
Does anyone have any experience doing something like this, and know of a resource/have any tips for me?
posted by latentflip to computers & internet (7 comments total)
2 users marked this as a favorite
posted by themel at 4:29 AM on February 12