|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectannas.graph.util.Prim<N,A>
N
- Node typeA
- Arc typepublic class Prim<N,A extends ArcInterface<N>>
Determines a minimal spanning tree for an Undirected graph, as described here
Constructor Summary | |
---|---|
Prim(GraphInterface<N,A> graph)
|
Method Summary | |
---|---|
GraphInterface<N,DefaultArc<N>> |
execute()
Executes Prim's algorithm |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Prim(GraphInterface<N,A> graph)
Method Detail |
---|
public GraphInterface<N,DefaultArc<N>> execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |