|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmocgraph.analysis.strategy.CachedStrategy
mapss.dif.graph.BacktrackingAllCliquesStrategy
public class BacktrackingAllCliquesStrategy
Finding all cliques in a graph. The collection of cliques returned cannot be modified. This implementation is adapted from a backtracking algorithm, as taken from Combinatorial Algorithms: generation, enumeration and search by D. Kreher and D. Stinson. (CRC Press, 1998)
mapss.graph.AllCliquesAnalysis
Constructor Summary | |
---|---|
BacktrackingAllCliquesStrategy(mocgraph.Graph graph)
Construct a cliques finding strategy for a given graph. |
Method Summary | |
---|---|
protected java.lang.Object |
_compute()
Find all cliques and maximal cliques of the graph. |
java.util.Collection |
cliques()
Return the collection of all cliques. |
java.util.Collection |
maximalCliques()
Return the maximal cliques. |
java.lang.String |
toString()
Return a description of the analysis in finding all cliques. |
boolean |
valid()
Check compatibility of the class of graph. |
Methods inherited from class mocgraph.analysis.strategy.CachedStrategy |
---|
_convertResult, _result, cachingStatus, disableCaching, enableCaching, getCachedResult, graph, obsolete, reset, setCachedResult |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface mocgraph.analysis.analyzer.GraphAnalyzer |
---|
graph |
Constructor Detail |
---|
public BacktrackingAllCliquesStrategy(mocgraph.Graph graph)
graph
- The given graph.Method Detail |
---|
public java.util.Collection cliques()
cliques
in interface AllCliquesAnalyzer
public java.util.Collection maximalCliques()
cliques()
maximalCliques
in interface AllCliquesAnalyzer
public java.lang.String toString()
toString
in interface mocgraph.analysis.analyzer.Analyzer
toString
in class mocgraph.analysis.strategy.CachedStrategy
public boolean valid()
valid
in interface mocgraph.analysis.analyzer.Analyzer
protected java.lang.Object _compute()
List
where the first element is a
collection of all the cliques and the second one is a collection of
maximal cliques.
_compute
in class mocgraph.analysis.strategy.CachedStrategy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |