org.jrdf.graph.global.molecule
Class NewNaiveGraphDecomposerImpl

java.lang.Object
  extended by org.jrdf.graph.global.molecule.NewNaiveGraphDecomposerImpl
All Implemented Interfaces:
NewGraphDecomposer

public class NewNaiveGraphDecomposerImpl
extends Object
implements NewGraphDecomposer


Constructor Summary
NewNaiveGraphDecomposerImpl(SortedSetFactory newSetFactory, NewMoleculeFactory newMoleculeFactory, NewMoleculeComparator comparator, TripleComparator tripleComparator)
           
 
Method Summary
 SortedSet<NewMolecule> decompose(Graph newGraph)
          Given the graph, this method returns the graph as a set of Molecules conataining the Most Self Contained Graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewNaiveGraphDecomposerImpl

public NewNaiveGraphDecomposerImpl(SortedSetFactory newSetFactory,
                                   NewMoleculeFactory newMoleculeFactory,
                                   NewMoleculeComparator comparator,
                                   TripleComparator tripleComparator)
Method Detail

decompose

public SortedSet<NewMolecule> decompose(Graph newGraph)
                                 throws GraphException
Description copied from interface: NewGraphDecomposer
Given the graph, this method returns the graph as a set of Molecules conataining the Most Self Contained Graph.

Specified by:
decompose in interface NewGraphDecomposer
Parameters:
newGraph - to decompose
Returns:
set of molecules (subgraphs) which make up the graph
Throws:
GraphException