Class DefaultWeightedEdge<V,W>
java.lang.Object
org.episteme.core.mathematics.discrete.DefaultWeightedEdge<V,W>
- Type Parameters:
V- the type of verticesW- the type of weights * @author Silvere Martin-Michiellot
- All Implemented Interfaces:
WeightedEdge<V,W>
Default implementation of a weighted edge.
- Since:
- 1.0
- Author:
- Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWeightedEdge(V source, V target, W weight) Creates a new weighted edge. -
Method Summary
Methods inherited from interface WeightedEdge
connects, isIncidentTo
-
Constructor Details
-
DefaultWeightedEdge
-
-
Method Details
-
getSource
Description copied from interface:WeightedEdgeReturns the source vertex of this edge.- Specified by:
getSourcein interfaceWeightedEdge<V,W> - Returns:
- the source vertex
-
getTarget
Description copied from interface:WeightedEdgeReturns the target vertex of this edge.- Specified by:
getTargetin interfaceWeightedEdge<V,W> - Returns:
- the target vertex
-
getWeight
Description copied from interface:WeightedEdgeReturns the weight of this edge.- Specified by:
getWeightin interfaceWeightedEdge<V,W> - Returns:
- the edge weight
-
equals
-
hashCode
-
toString
-