giden.GRDS
Class OutListIter
java.lang.Object
|
+--giden.GRDS.ListIter
|
+--giden.GRDS.EdgeListIter
|
+--giden.GRDS.OutListIter
- public class OutListIter
- extends EdgeListIter
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.
OutListIter is derived from EdgeListIter and provides all
its methods. OutListIter accesses the list of outgoing
Edges incident to a particular Node.
A newly created OutListIter is initialized to null.
At some point prior to using a newly created OutListIter 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
,
EdgeListIter
,
InListIter
,
Graph
,
GraphState
,
ListIter
,
LinkList
,
Network
,
Node
Constructor Summary |
OutListIter(Node node,
LinkList list)
Creates an OutListIter for accessing the list of outgoing
Edges for the given Node, and initializes it to null. |
Method Summary |
Edge |
GetFirstEdge()
Moves this OutListIter to the ListEntry at the head of the
list and gets that ListEntry's Edge. |
Edge |
GetNextEdge()
Moves this OutListIter to the next ListEntry of the
listand gets that ListEntry's Edge. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutListIter
public OutListIter(Node node,
LinkList list)
- Creates an OutListIter for accessing the list of outgoing
Edges for the given Node, and initializes it to null. In
order to use this OutListIter to access Edges in the list,
GetFirstEdge() or GetLastEdge must initially be called.
GetFirstEdge
public Edge GetFirstEdge()
- Moves this OutListIter to the ListEntry at the head of the
list and gets that ListEntry's Edge.
- Overrides:
GetFirstEdge
in class EdgeListIter
- Returns:
- The first outgoing edge from the Node's EdgeList
GetNextEdge
public Edge GetNextEdge()
- Moves this OutListIter to the next ListEntry of the
listand gets that ListEntry's Edge.
- Overrides:
GetNextEdge
in class EdgeListIter
- Returns:
- The next outgoing edge from the Node's EdgeList