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

Enumerators

All the other container classes considered in this text have only one associated enumerator. When dealing with graphs, it is convenient to have two enumerators. The following methods each returns an IEnumerable object as follows:

Vertices
This property can be used to enumerate the elements of tex2html_wrap_inline70254.
Edges
This property can be used to enumerate the elements of tex2html_wrap_inline70260.


next up previous contents index

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