Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
Class SteinerTreeAlgorithm.SteinerTreeImpl<E>
java.lang.Object
org.jgrapht.alg.interfaces.SteinerTreeAlgorithm.SteinerTreeImpl<E>
- Type Parameters:
E- the graph edge type
- All Implemented Interfaces:
Serializable,Iterable<E>,SteinerTreeAlgorithm.SteinerTree<E>
- Enclosing interface:
SteinerTreeAlgorithm<V,E>
public static class SteinerTreeAlgorithm.SteinerTreeImpl<E>
extends Object
implements SteinerTreeAlgorithm.SteinerTree<E>, Serializable
Default implementation of the Steiner tree interface.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.jgrapht.alg.interfaces.SteinerTreeAlgorithm.SteinerTree
iterator
-
Constructor Details
-
SteinerTreeImpl
Construct a new Steiner tree.- Parameters:
edges- the edgesweight- the weight
-
-
Method Details
-
getWeight
public double getWeight()Description copied from interface:SteinerTreeAlgorithm.SteinerTreeReturns the weight of the Steiner tree.- Specified by:
getWeightin interfaceSteinerTreeAlgorithm.SteinerTree<E>- Returns:
- weight of the Steiner tree
-
getEdges
Description copied from interface:SteinerTreeAlgorithm.SteinerTreeSet of edges of the Steiner tree.- Specified by:
getEdgesin interfaceSteinerTreeAlgorithm.SteinerTree<E>- Returns:
- edge set of the Steiner tree
-
toString
-