Next: Dijkstra's algorithm
Up: Shortest Paths in Weighted
Previous: Shortest Paths in Weighted
  Index
Recall that we are dealing with finite positively weighted directed
graphs. These consist of a finite set of nodes and a finite set of
arcs. An arc can be represented by a weighted arrow
which has a tail node
, a head node
and a weight
. For the present, the weight is a non-negative integer.
When such an arc exists,
is said to be adjacent to
.
Because of our special interests, we shall also refer to the weight
as the length of the arc.
A path in the graph is a non-empty sequence of arcs such that
the head of all but the last is the tail of the next. We can picture
a path as
We say the path is from
to
and that it
visits each node
. The length
of a path
, written
, is the sum of the weights (lengths)
of its members:
. We shall say that a node
is
reachable from
if either
or there exists a path from
to
.
Next: Dijkstra's algorithm
Up: Shortest Paths in Weighted
Previous: Shortest Paths in Weighted
  Index
Peter Williams
2005-06-07