E
- the graph edge typepublic static class SpannerAlgorithm.SpannerImpl<E> extends Object implements SpannerAlgorithm.Spanner<E>, Serializable
Constructor and Description |
---|
SpannerImpl(Set<E> edges,
double weight)
Construct a new spanner
|
Modifier and Type | Method and Description |
---|---|
Set<E> |
getEdges()
Set of edges of the graph spanner.
|
double |
getWeight()
Returns the weight of the graph spanner.
|
String |
toString() |
public double getWeight()
SpannerAlgorithm.Spanner
getWeight
in interface SpannerAlgorithm.Spanner<E>
public Set<E> getEdges()
SpannerAlgorithm.Spanner
getEdges
in interface SpannerAlgorithm.Spanner<E>
Copyright © 2017. All rights reserved.