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

Enumerations

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 tex2html_wrap_inline69999.
getEdges
This method returns an enumeration that can be used to traverse the elements of tex2html_wrap_inline70005.


next up previous contents index

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