Class SpanningTreeAlgorithm.SpanningTreeImpl<E>

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      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
    • Constructor Detail

      • SpanningTreeImpl

        public SpanningTreeImpl​(java.util.Set<E> edges,
                                double weight)
        Construct a new spanning tree.
        Parameters:
        edges - the edges
        weight - the weight