Interface SpanningTreeAlgorithm.SpanningTree<E>

    • Method Detail

      • getWeight

        double getWeight()
        Returns the weight of the spanning tree.
        Returns:
        weight of the spanning tree
      • getEdges

        Set<E> getEdges()
        Set of edges of the spanning tree.
        Returns:
        edge set of the spanning tree
      • iterator

        default Iterator<E> iterator()
        Returns an iterator over the edges in the spanning tree.
        Specified by:
        iterator in interface Iterable<E>
        Returns:
        iterator over the edges in the spanning tree.