|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uu.cs.treewidth.algorithm.MinorMinWidth<D>
public class MinorMinWidth<D extends GraphInput.InputData>
Used graphstructure: NeighborHashSetGraph The 'MinorMinWidth' lower bound. Reference: A Complete Anytime Algorithm for Treewidth Vibhav Gogate and Rina Dechter The algorithm repeativly contracts the lowest degree vertex with a lowest degree neighbor. The lowerbound is the maximum degree of the selected lowest degree vertices at the time of contraction.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface nl.uu.cs.treewidth.algorithm.LowerBound |
---|
LowerBound.Creator |
Constructor Summary | |
---|---|
MinorMinWidth()
Starts out as a lowerbound of -infty; improved to the mindegree lowerbound once run() is called. |
Method Summary | |
---|---|
int |
getLowerBound()
|
java.lang.String |
getName()
Every algorithm has a name. |
void |
run()
Method runs the algorithm and sets the lowerbound. |
void |
setInput(NGraph<D> g)
Sets the input the algorithm will run on. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MinorMinWidth()
Method Detail |
---|
public java.lang.String getName()
Algorithm
getName
in interface Algorithm<D extends GraphInput.InputData>
public void setInput(NGraph<D> g)
Algorithm
setInput
in interface Algorithm<D extends GraphInput.InputData>
g
- The graph in standard graph format.public void run()
run
in interface Algorithm<D extends GraphInput.InputData>
public int getLowerBound()
getLowerBound
in interface LowerBound<D extends GraphInput.InputData>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |