Interface SteinerTreeAlgorithm.SteinerTree<E>

Type Parameters:
E - the graph edge type
All Superinterfaces:
Iterable<E>
All Known Implementing Classes:
SteinerTreeAlgorithm.SteinerTreeImpl
Enclosing interface:
SteinerTreeAlgorithm<V,E>

public static interface SteinerTreeAlgorithm.SteinerTree<E> extends Iterable<E>
A Steiner tree.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set of edges of the Steiner tree.
    double
    Returns the weight of the Steiner tree.
    default Iterator<E>
    Returns an iterator over the edges in the Steiner tree.

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Method Details

    • getWeight

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

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

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