Class SpanningTreeAlgorithm.SpanningTreeImpl<E>

Type Parameters:
E - the graph edge type
All Implemented Interfaces:, java.lang.Iterable<E>, SpanningTreeAlgorithm.SpanningTree<E>
Enclosing interface:

public static class SpanningTreeAlgorithm.SpanningTreeImpl<E>
extends java.lang.Object
implements SpanningTreeAlgorithm.SpanningTree<E>,
Default implementation of the spanning tree interface.
See Also:
Serialized Form
  • Constructor Summary

    Constructor Description
    SpanningTreeImpl​(java.util.Set<E> edges, double weight)
    Construct a new spanning tree.
  • Method Summary

    Modifier and Type Method Description
    java.util.Set<E> getEdges()
    Set of edges of the spanning tree.
    double getWeight()
    Returns the weight of the spanning tree.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface org.jgrapht.alg.interfaces.SpanningTreeAlgorithm.SpanningTree