Data Structures and Algorithms with Object-Oriented Design Patterns in C#
next up previous contents index

Terminology

Consider a directed graph tex2html_wrap_inline70252 as given by Definition gif.

For example, Table gif enumerates the sets of emanating and incident edges and the in- and out-degrees for each of the vertices in graph tex2html_wrap_inline70346 shown in Figure gif.

 

 

vertex v tex2html_wrap_inline70322 out-degree tex2html_wrap_inline70354 in-degree
a tex2html_wrap_inline70358 2 tex2html_wrap_inline70360 1
b tex2html_wrap_inline70364 1 tex2html_wrap_inline70366 1
c tex2html_wrap_inline70370 2 tex2html_wrap_inline70372 2
d tex2html_wrap_inline70376 1 tex2html_wrap_inline70378 2
Table: Emanating and incident edge sets for graph tex2html_wrap_inline70346 in Figure gif.

There is still more terminology to be introduced, but in order to do that, we need the following definition:

Definition (Path and Path Length) 

A path  in a directed graph tex2html_wrap_inline70252 is a non-empty sequence of vertices

displaymath70282

where tex2html_wrap_inline70382 for tex2html_wrap_inline62639 such that tex2html_wrap_inline70386 for tex2html_wrap_inline69676. The length of path P is k-1.

For example, consider again the graph tex2html_wrap_inline70346 shown in Figure gif. Among the paths contained in tex2html_wrap_inline70346 there is the path of length zero, tex2html_wrap_inline66271; the path of length one, tex2html_wrap_inline70400; the path of length two, tex2html_wrap_inline66281; and so on. In fact, this graph generates an infinite number of paths! (To see how this is possible, consider that tex2html_wrap_inline70404 is a path in tex2html_wrap_inline70346). Notice too the subtle distinction between a path of length zero, say tex2html_wrap_inline70408, and the path of length one tex2html_wrap_inline70410.


next up previous contents index

Bruno Copyright © 2001 by Bruno R. Preiss, P.Eng. All rights reserved.