net.sourceforge.combean.graph.iterators
Class IncidentEdgeAsOutgoingEdgeIterator

Package class diagram package IncidentEdgeAsOutgoingEdgeIterator
java.lang.Object
  extended by net.sourceforge.combean.graph.iterators.AbstractFilteringEdgeIterator
      extended by 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


Constructor Summary
IncidentEdgeAsOutgoingEdgeIterator(NeighborhoodGraphProp g, Node source, EdgeIterator itEdge)
          Constructor
 
Method Summary
protected  boolean isVisible(Edge e)
          Template method.
 
Methods inherited from class net.sourceforge.combean.graph.iterators.AbstractFilteringEdgeIterator
hasNext, next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncidentEdgeAsOutgoingEdgeIterator

public IncidentEdgeAsOutgoingEdgeIterator(NeighborhoodGraphProp g,
                                          Node source,
                                          EdgeIterator itEdge)
Constructor

Parameters:
g - the underlying graph
source - the node where the outgoing edges shall be traversed
itEdge - an iterator through all incident edges of source
Method Detail

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