|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.auburn.VGJ.examplealg.ExampleAlg2
This example randomly moves the nodes. It does this 100 times, and updates the display and waits 5 milliseconds in between.
Here is the source.
Constructor Summary | |
ExampleAlg2()
|
Method Summary | |
java.lang.String |
compute(Graph graph,
GraphUpdate update)
Apply the algorithm to graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExampleAlg2()
Method Detail |
public java.lang.String compute(Graph graph, GraphUpdate update)
GraphAlgorithm
compute
in interface GraphAlgorithm
update
- an object that allows the display to be updated
from within the algorithmGraphUpdate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |