slib.sglib.algo.graph.extraction.rvf
Class DescendantEngine

java.lang.Object
  extended by slib.sglib.algo.graph.extraction.rvf.RVF
      extended by slib.sglib.algo.graph.extraction.rvf.RVF_DAG
          extended by slib.sglib.algo.graph.extraction.rvf.RVF_TAX
              extended by slib.sglib.algo.graph.extraction.rvf.DescendantEngine

public class DescendantEngine
extends RVF_TAX

Author:
Harispe Sébastien

Field Summary
 
Fields inherited from class slib.sglib.algo.graph.extraction.rvf.RVF
g, wc
 
Constructor Summary
DescendantEngine(slib.sglib.model.graph.G g)
           
 
Method Summary
 Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> getAllDescendantsExc()
          Compute the set of exclusive descendants of all vertices contained in the graph.
 Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> getAllDescendantsInc()
          Compute the set of inclusive descendants of all vertices contained in the graph.
 Set<org.openrdf.model.URI> getDescendantsExc(org.openrdf.model.URI v)
          Compute the set of exclusive descendants of a class.
 Set<org.openrdf.model.URI> getDescendantsInc(org.openrdf.model.URI v)
          Compute the set of inclusive descendants of a class.
 
Methods inherited from class slib.sglib.algo.graph.extraction.rvf.RVF_TAX
getAllRVClass, getRVClass
 
Methods inherited from class slib.sglib.algo.graph.extraction.rvf.RVF_DAG
computeNbPathLeadingToAllVertices, getAllRV, getTerminalVertices, propagateNbOccurences
 
Methods inherited from class slib.sglib.algo.graph.extraction.rvf.RVF
getRV, getRV, getRVnb, getWalkConstraint, setWalkConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescendantEngine

public DescendantEngine(slib.sglib.model.graph.G g)
Parameters:
g -
Method Detail

getDescendantsExc

public Set<org.openrdf.model.URI> getDescendantsExc(org.openrdf.model.URI v)
Compute the set of exclusive descendants of a class. Exclusive process: the focused vertex will NOT be included in the set of descendants.

Parameters:
v - the vertex of interest
Returns:
the exclusive set of descendants of the concept (empty set if any).

getDescendantsInc

public Set<org.openrdf.model.URI> getDescendantsInc(org.openrdf.model.URI v)
Compute the set of inclusive descendants of a class. The focused vertex will be included in the set of descendants.

Parameters:
v - the vertex of interest
Returns:
the exclusive set of descendants of the concept (empty set if any).

getAllDescendantsExc

public Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> getAllDescendantsExc()
                                                                           throws slib.utils.ex.SLIB_Ex_Critic
Compute the set of exclusive descendants of all vertices contained in the graph. Exclusive process: the focused vertex will NOT be included in the set of ancestors.

Returns:
a map containing the exclusive set of descendants of each vertex concept (empty set if any).
Throws:
slib.utils.ex.SLIB_Ex_Critic

getAllDescendantsInc

public Map<org.openrdf.model.URI,Set<org.openrdf.model.URI>> getAllDescendantsInc()
                                                                           throws slib.utils.ex.SLIB_Ex_Critic
Compute the set of inclusive descendants of all vertices contained in the graph. Exclusive process: the focused vertex will be included in the set of ancestors.

Returns:
a map containing the inclusive set of descendants of each vertex concept.
Throws:
slib.utils.ex.SLIB_Ex_Critic


Copyright © 2013. All Rights Reserved.