org.eml.sir.rel
Class PathFinder

java.lang.Object
  extended byorg.eml.sir.rel.PathFinder

public class PathFinder
extends java.lang.Object

Finds all pathes from a synset to its most abstract hypernyms.

Author:
Hendrik Niederlich (EML-R)

Constructor Summary
PathFinder()
          Create a new instance of PathFinder.
 
Method Summary
 java.util.ArrayList getPathsToRoot(Synset set)
          Return an ArrayList of ArrayLists that represent the paths from the Synset to the root of its is-a hierarchy.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFinder

public PathFinder()
Create a new instance of PathFinder.

Method Detail

getPathsToRoot

public java.util.ArrayList getPathsToRoot(Synset set)
Return an ArrayList of ArrayLists that represent the paths from the Synset to the root of its is-a hierarchy.

Parameters:
set - The Synset that is the end of the demanded paths.
Returns:
ArrayList of ArrayLists.(!) Each one represents a path with the parameter set as the first element and the root of the path as the last.