giden.GRDS
Class EdgeListIter

java.lang.Object
  |
  +--giden.GRDS.ListIter
        |
        +--giden.GRDS.EdgeListIter
Direct Known Subclasses:
InListIter, OutListIter

public class EdgeListIter
extends ListIter

Copyright (c) 1993-2004 C. R. Coullard, D. S. Dilworth, J. H. Owen, All Rights Reserved.
We make no representations or warranties about the suitability of the software, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. We shall not be liable for any damages suffered by user as a result of using, modifying or distributing this software or its derivatives.

EdgeListIter is derived from ListIter and provides all of its methods. In addition EdgeListIter provides methods to iterate with Edge objects. A newly created EdgeListIter is initialized to null. At some point prior to using a newly created ListIter to access the list, GetFirstEdge() or GetLastEdge() must be called.

Copyright (c) 1993-2003 C. R. Coullard, D. S. Dilworth, J. H. Owen, All Rights Reserved.

Version:
4.0a 2004 08 27
Author:
D. S. Dilworth
See Also:
Edge, Graph, InListIter, LinkList, Network, OutListIter

Fields inherited from class giden.GRDS.ListIter
Entry, List
 
Constructor Summary
EdgeListIter(LinkList list)
          Creates an EdgeListIter for the given LinkList and initializes it to null.
 
Method Summary
 Edge GetFirstEdge()
          Moves this EdgeListIter to the ListEntry at the head of the list and gets that ListEntry's Edge.
 Edge GetNextEdge()
          Moves this EdgeListIter to the next ListEntry of the list and gets that ListEntry's Edge.
 
Methods inherited from class giden.GRDS.ListIter
GetFirstItem, GetItem, GetLastItem, GetNextItem, GetPrevItem, GetSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeListIter

public EdgeListIter(LinkList list)
Creates an EdgeListIter for the given LinkList and initializes it to null. In order to use this EdgeListIter to access Edges in the list, GetFirstEdge() or GetLastEdge must initially be called.
Method Detail

GetFirstEdge

public Edge GetFirstEdge()
Moves this EdgeListIter to the ListEntry at the head of the list and gets that ListEntry's Edge.
Returns:
The first edge in the list

GetNextEdge

public Edge GetNextEdge()
Moves this EdgeListIter to the next ListEntry of the list and gets that ListEntry's Edge.
Returns:
The next edge in the list