E - the graph edge typepublic static class SpanningTreeAlgorithm.SpanningTreeImpl<E> extends Object implements SpanningTreeAlgorithm.SpanningTree<E>, Serializable
| Constructor and Description | 
|---|
SpanningTreeImpl(Set<E> edges,
                double weight)
Construct a new spanning tree. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Set<E> | 
getEdges()
Set of edges of the spanning tree. 
 | 
double | 
getWeight()
Returns the weight of the spanning tree. 
 | 
String | 
toString()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waititeratorforEach, spliteratorpublic double getWeight()
SpanningTreeAlgorithm.SpanningTreegetWeight in interface SpanningTreeAlgorithm.SpanningTree<E>public Set<E> getEdges()
SpanningTreeAlgorithm.SpanningTreegetEdges in interface SpanningTreeAlgorithm.SpanningTree<E>Copyright © 2018. All rights reserved.