Package net.sf.tweety.graphs
Class Edge<T extends Node>
- java.lang.Object
-
- net.sf.tweety.graphs.Edge<T>
-
- Type Parameters:
T
- The type of the nodes this edge connects
- Direct Known Subclasses:
BpmnEdge
,DirectedEdge
,UndirectedEdge
public abstract class Edge<T extends Node> extends java.lang.Object
Instances of this class represent abstract edges.- Author:
- Matthias Thimm
-
-
Method Detail
-
getNodeA
public T getNodeA()
Returns the first node of this edge.- Returns:
- the first node of this edge.
-
getNodeB
public T getNodeB()
Returns the second node of this edge.- Returns:
- the second node of this edge.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-