The source code is written for VB 6. There are no controls or forms in the source code. That is up to you to implement. The code works by asking the user a series of questions using Input boxes.
The results are saved to a file in the root directory of wherever you unzip these files to. The file is called Node Number_table.htm, wher Node Number is the source node in the network.
The source code is free for personal use. Modify it as you see fit. There is no technical support for the source code, and no warranty is given. (That's just to cover my own backside, but if you know how to reach me, you can ask away.)
The code is broken into procedures. Each procedure represents each step, (or self-contained loop), of the algorithm. The Check Arrays procedure is used for debugging the code, all it does is give the current status of the various arrays. If you want to see the result after each pass of program, look in Sub Main and add a line that says 'CheckArrays' (no quotes), after each procedure name.
I may get a chance to properly document the code, but it shouldn't be too hard to follow as it is. Just remember that it starts with the Sub Main procedure calling the other procedures in turn.
One thing I will not be doing is implementing a graphical version of this. If you want graphics, look it up yourself, I'd suggest having a looking at the MSDN site for help with drawing simple graphics, etc.
If you do not have access to WinZip or other such utility, there is a copy of the code in plain text format. To use this copy & paste the text from the web page, open VB6, and start a new project. Insert a code module, and copy the code in there. You can remove any forms from the project as you will not need them. Remember to set Sub Main as the start-up location. (Though VB will prompt you if you forget.)
Known Bugs:
I have not put a lot of error trapping in the code. There is some basic stuff for the Input Boxes, just to prevent accidental string entries etc. You'll have to behave if you want the program to work properly. (I wasn't going to go through all the possible errors that could have been generated.)
So you have been warned ;)
paulmac
VB Source Code Files - 4KB
Text Version - 9KB
For those of you looking for the HTML part of the site
click here