Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
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>
A Steiner tree.
-
Method Summary
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 of edges of the Steiner tree.- Returns:
- edge set of the Steiner tree
-
iterator
Returns an iterator over the edges in the Steiner tree.
-