Hi,

I want my pipe network to be numbered in the following fashion:

Network.png

The key here is that I won't proceed to the next pipe until all the pipes that flow into a structure are numbered first. I need this numbering in order to be able to calculate my network.

How can I accomplish this through vb.net? I've been thinking about it but can't find a simple way of doing it and I feel that there should be a simple way.

Do you think I could find an algorithm to this on the internet? What would the keywords be?