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

Enumerations

Program gif also declares four methods each of which returns an Enumeration. The getIncidentEdges method returns an Enumeration that enumerates the elements of the tex2html_wrap_inline70099. Similarly, the getEmanatingEdges method returns an Enumeration that enumerates the elements of tex2html_wrap_inline70067.

The getPredecessors method returns an Enumeration that enumerates the elements of tex2html_wrap_inline70459 and the getPredecessors method returns an Enumeration that enumerates tex2html_wrap_inline70461. The elements of tex2html_wrap_inline70463 and tex2html_wrap_inline70465 are vertices whereas the elements of tex2html_wrap_inline70099 and tex2html_wrap_inline70067 are edges.


next up previous contents index

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