net.sourceforge.combean.graph.iterators
Class IncidentEdgeAsIncomingEdgeIterator

Package class diagram package IncidentEdgeAsIncomingEdgeIterator
java.lang.Object
  extended by net.sourceforge.combean.graph.iterators.AbstractFilteringEdgeIterator
      extended by net.sourceforge.combean.graph.iterators.IncidentEdgeAsIncomingEdgeIterator
All Implemented Interfaces:
EdgeIterator

public class IncidentEdgeAsIncomingEdgeIterator
extends AbstractFilteringEdgeIterator

Traverse only incoming edges of a incident edge iterator


Constructor Summary
IncidentEdgeAsIncomingEdgeIterator(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

IncidentEdgeAsIncomingEdgeIterator

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

Parameters:
g - the underlying graph
source - the node where the incoming 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