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, wait
iterator
forEach, spliterator
public double getWeight()
SpanningTreeAlgorithm.SpanningTree
getWeight
in interface SpanningTreeAlgorithm.SpanningTree<E>
public Set<E> getEdges()
SpanningTreeAlgorithm.SpanningTree
getEdges
in interface SpanningTreeAlgorithm.SpanningTree<E>
Copyright © 2017. All rights reserved.