org.hypergraphdb.algorithms
Class SimpleALGenerator

java.lang.Object
  extended by org.hypergraphdb.algorithms.SimpleALGenerator
All Implemented Interfaces:
HGALGenerator

public class SimpleALGenerator
extends java.lang.Object
implements HGALGenerator

The SimpleALGenerator produces all atoms linked to the given atom, regardless of the link type and regardless of how an outgoing set is ordered.

Author:
Borislav Iordanov

Constructor Summary
SimpleALGenerator(HyperGraph hg)
          Construct a SimpleALGenerator for the given HyperGraph instance.
 
Method Summary
 void close()
           
 HGSearchResult<HGHandle> generate(HGHandle h)
           Return an Iterator over all atoms adjacent to the passed in atom.
 HGHandle getCurrentLink()
          Return the HGHandle of the currently examined link.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleALGenerator

public SimpleALGenerator(HyperGraph hg)

Construct a SimpleALGenerator for the given HyperGraph instance.

Parameters:
hg - The HyperGraph instance.
Method Detail

getCurrentLink

public HGHandle getCurrentLink()
Description copied from interface: HGALGenerator

Return the HGHandle of the currently examined link.

Specified by:
getCurrentLink in interface HGALGenerator

generate

public HGSearchResult<HGHandle> generate(HGHandle h)
Description copied from interface: HGALGenerator

Return an Iterator over all atoms adjacent to the passed in atom.

Specified by:
generate in interface HGALGenerator
Parameters:
h - The handle of the atom of interest.

close

public void close()