net.sourceforge.combean.graph.iterators
Class IncidentEdgeAsOutgoingEdgeIterator
java.lang.Object
net.sourceforge.combean.graph.iterators.AbstractFilteringEdgeIterator
net.sourceforge.combean.graph.iterators.IncidentEdgeAsOutgoingEdgeIterator
- All Implemented Interfaces:
- EdgeIterator
public final class IncidentEdgeAsOutgoingEdgeIterator
- extends AbstractFilteringEdgeIterator
Traverse only outgoing edges of a incident edge iterator
Method Summary |
protected boolean |
isVisible(Edge e)
Template method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncidentEdgeAsOutgoingEdgeIterator
public IncidentEdgeAsOutgoingEdgeIterator(NeighborhoodGraphProp g,
Node source,
EdgeIterator itEdge)
- Constructor
- Parameters:
g
- the underlying graphsource
- the node where the outgoing edges shall be traverseditEdge
- an iterator through all incident edges of source
isVisible
protected final boolean isVisible(Edge e)
- Description copied from class:
AbstractFilteringEdgeIterator
- Template method. This method specifies which Edge shall be returned
by the iterator.
- Specified by:
isVisible
in class AbstractFilteringEdgeIterator
- Parameters:
e
- a candidate edge which may or may not be returned by the iterator
- Returns:
- if true is given, the edge will be returned by the iterator