Data Structures and Algorithms
with Object-Oriented Design Patterns in C# |
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: