public class SimpleALGenerator extends 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.
Modifier and Type | Class and Description |
---|---|
protected class |
SimpleALGenerator.AdjIterator |
Modifier and Type | Field and Description |
---|---|
protected HyperGraph |
graph |
Constructor and Description |
---|
SimpleALGenerator()
Empty constructor - you will need to set the graph (see
setGraph ) before
the instance becomes usable. |
SimpleALGenerator(HyperGraph hg)
Construct a
SimpleALGenerator for the given HyperGraph instance. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
HGSearchResult<Pair<HGHandle,HGHandle>> |
generate(HGHandle h)
Return
HGSearchResult over all atoms adjacent to the passed in
atom. |
HyperGraph |
getGraph() |
void |
setGraph(HyperGraph graph) |
protected HyperGraph graph
public SimpleALGenerator()
Empty constructor - you will need to set the graph (see setGraph
) before
the instance becomes usable.
public SimpleALGenerator(HyperGraph hg)
Construct a SimpleALGenerator
for the given HyperGraph instance.
hg
- The HyperGraph instance.public HGSearchResult<Pair<HGHandle,HGHandle>> generate(HGHandle h)
HGALGenerator
Return HGSearchResult
over all atoms adjacent to the passed in
atom. The result set items are pairs of the form [link, atom] where the first
element is the HGLink
handle of the link that "leads" to the adjacent atom
and the second element is the adjacent atom itself.
generate
in interface HGALGenerator
h
- The handle of the atom of interest.public void close()
public void setGraph(HyperGraph graph)
public HyperGraph getGraph()
Copyright © 2015. All rights reserved.