THE SCIENCE AND TECHNOLOGY OF DECISION-MAKING
Introduction: What is a network?
A network consists of nodes and links (or arcs). Nodes are
usually drawn as circles and links are drawn as lines connecting the
nodes. A path is a route from one node to another across a
specific series of links. The following is an example of a
network consisting of 4 nodes and 5 links:
Node 0 (in green) represents the origin node and Node 1 (in red) represents the destination node. The links have directional arrows with numbers next to them, which represent the cost associated with that link. A path can be written as the sequence of nodes through which the path travels.
In this example, there are 3 paths from the origin to the destination: 0-2-1, 0-3-1, and 0-2-3-1. The optimal path is the path with the least total cost of all the links used on the path. In this case, we can see that the optimal path from the origin to the destination is path 0-2-3-1, with a total cost of 30. The Path Calculator would display this result as follows, with the links and nodes used by the optimal path in blue:
Attributes of a Network
A network attribute is a factor by which the links of that network
are valued. In the example above, the general term ``cost'' was used as the
attribute of the network. A network can have many attributes associated with
its links. For example, if you think of the network as roads (the links)
connecting various cities (the nodes), some important attributes could be
travel time, distance, and traffic.
The network may have different optimal
paths depending on which attribute is used to place values on the links.
Notice that all the attributes listed above are ones whose values should be
MINIMIZED on the optimal path. This is important to remember, since this
program only finds the path from the origin to the destination that has the
SMALLEST total value of the links used in the path.
About the Path Calculator
The Path Calculator can be used to create networks and to find optimal paths
across networks with respect to different attributes.
The Path Calculator window appears as follows (this will look different on
different machines):
The various buttons that control the execution of the program appear at the top of the window. The network is drawn in the middle of the window. The bottom of the window has two long white areas where information and directions are placed. The upper area will contain the results of finding an optimal path; the lower will contain directions for carrying out the actions of the current mode, as well as display error messages when those happen to occur.
Commands/Buttons
All commands are initiated using the buttons at the top of
the Path Calculator window.
Creating Netwoks
When the Path Calculator window is first started, you will see a box directly
below the row of buttons that says ``Add node''. This is one of several MODES
which the program can be in for creating a network. Click on this box and
hold down the mouse button to view the rest of the choices. Releasing the
mouse button on any of these choices will place the program into that mode
or carry out that command. The text line at the bottom of the Path
Calculator contains directions for carrying out the actions of the current
mode. You can always tell what mode the program is in by reading the
directions in this line. If the line is empty, or if it contains something
other than directions, then the program is not in any mode and clicking on
the network will do nothing. The different options of the choice list are
listed and explained as follows:
The number in the white box is initially set to the current value of the link
under the active attribute. Change the number in this box to the desired
value and click on the Replace button. This will close the Link Adjust window
and replace the value next to the chosen link's arrowhead to the value you
entered. Clicking the Cancel button will close the Link Adjust window and
leave the link value unchanged. There must be an INTEGER value in the white
box when the Replace button is clicked, or the procedure will not work.
The final four options do not change the mode by which the network can be
created or modified, but instead are commands within themselves:
You can either keep the name which is displayed (Cost plus the number of the
attribute) by clicking the Replace button immediately, or you can change the
entry in the white box to whatever name you'd like and then click the Replace
button. When the Replace button is clicked, the window will disappear and
values of the links will be replaced with those of the new attribute
(initially set to be the distance in pixels between the nodes). You can
switch back to one of the other attributes using the Set Attribute command.
If you decide not to add a new attribute, click the Cancel button.
Either way, you must click one of these two buttons in order to close the
window and continue.
In order to select the active attribute, DOUBLE CLICK on the name of the
attribute. This will close the window and set the link labels of the
network to their values under the chosen attribute. Clicking the Cancel
button will keep the active attribute the same as it was before the Attribute
Choice window appeared.
© Princeton University