org.jrdf.graph.global.molecule
Class NewNaiveGraphDecomposerImpl
java.lang.Object
org.jrdf.graph.global.molecule.NewNaiveGraphDecomposerImpl
- All Implemented Interfaces:
- NewGraphDecomposer
public class NewNaiveGraphDecomposerImpl
- extends Object
- implements NewGraphDecomposer
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 |
NewNaiveGraphDecomposerImpl
public NewNaiveGraphDecomposerImpl(SortedSetFactory newSetFactory,
NewMoleculeFactory newMoleculeFactory,
NewMoleculeComparator comparator,
TripleComparator tripleComparator)
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