 Data Structures and Algorithms 
with Object-Oriented Design Patterns in Java
Data Structures and Algorithms 
with Object-Oriented Design Patterns in Java 
  
  
  
  
 
Program  also declares four methods
each of which returns an Enumeration.
The getIncidentEdges method returns an Enumeration that enumerates
the elements of the
 also declares four methods
each of which returns an Enumeration.
The getIncidentEdges method returns an Enumeration that enumerates
the elements of the   .
Similarly, the getEmanatingEdges method returns an Enumeration
that enumerates the elements of
.
Similarly, the getEmanatingEdges method returns an Enumeration
that enumerates the elements of   .
.
The getPredecessors method returns an Enumeration that enumerates
the elements of   and the getPredecessors method returns an Enumeration
that enumerates
and the getPredecessors method returns an Enumeration
that enumerates   .
The elements of
.
The elements of   and
 and   are vertices
whereas the elements of
 are vertices
whereas the elements of   and
 and   are edges.
 are edges.
 
  
  
  
  
 
 Copyright © 1998 by Bruno R. Preiss, P.Eng.  All rights reserved.
Copyright © 1998 by Bruno R. Preiss, P.Eng.  All rights reserved.