Data Structures and Algorithms
with Object-Oriented Design Patterns in Java
All the other container classes considered in this text
have only one associated enumeration.
When dealing with graphs,
it is convenient to have two enumerations.
Each of the following methods returns an Enumeration
defines as follows:
- getVertices
-
This method returns an enumeration that can be used to
traverse the elements of .
- getEdges
-
This method returns an enumeration that can be used to
traverse the elements of .
Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.