- java.lang.Object
-
- com.github.moaxcp.graphs.EdgeKey<ID>
-
- com.github.moaxcp.graphs.UndirectedEdgeKey<ID>
-
- Type Parameters:
ID
- type of identifier
public final class UndirectedEdgeKey<ID> extends EdgeKey<ID>
Used by undirected implementations ofAbstractGraph
. AbstractGraph uses instances of this class as identifiers for Edges in the graph. In the case of undirected graphs two edges are equal if they connect the same endpoints regardless of order.
-
-
Constructor Summary
Constructors Constructor Description UndirectedEdgeKey(ID from, ID to)
Creates an UndirectedEdgeKey with given from and to params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
-