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