Package science.aist.gtf.graph
Interface Edge<V,E>
-
- Type Parameters:
V
- the type of the decorated vertex valueE
- the type of the decorated edge value
- All Superinterfaces:
MetaTagCollection
- All Known Subinterfaces:
EdgeView<V,E>
- All Known Implementing Classes:
AbstractEdge
,EdgeImpl
,EdgeViewImpl
public interface Edge<V,E> extends MetaTagCollection
an edge has a source and a target
- Since:
- 1.0
- Author:
- Andreas Schuler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description E
getElement()
Returns the element associated with the edgeVertex<V,E>
getSource()
get the source of the edgeVertex<V,E>
getTarget()
get the target of the edgedouble
getWeight()
Returns the weight of the edge-
Methods inherited from interface science.aist.gtf.graph.MetaTagCollection
addMetaTag, getMetaTags, getMetaTagValue, getMetaTagValue, removeMetaTag, removeMetaTag, tryGetMetaTagValue, tryGetMetaTagValue
-
-
-
-
Method Detail
-
getWeight
double getWeight()
Returns the weight of the edge- Returns:
- the weight of the edge
-
getElement
E getElement()
Returns the element associated with the edge- Returns:
- the element associated with the edge, or null if not present
-
-