Package com.github.moaxcp.graphs
Class EdgeKey<ID>
- java.lang.Object
-
- com.github.moaxcp.graphs.EdgeKey<ID>
-
- Type Parameters:
ID
- type of identifiers
- Direct Known Subclasses:
DirectedEdgeKey
,UndirectedEdgeKey
public abstract class EdgeKey<ID> extends Object
Key for identifying edges within a collection such as Map. Extensions of this class define how two edges are equal in terms of the graph. Implementing classes must define equals and hashCode for the type of Edge used in the graph. Classes implementing AbstractGraph should typically use DirectedEdgeKey or UndirectedEdgeKey instead of extending this class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ID
getFrom()
Returns 'from' vertex id.ID
getTo()
Returns 'to' vertex id.
-