Package org.tweetyproject.graphs
Class Edge<T extends Node>
java.lang.Object
org.tweetyproject.graphs.GeneralEdge<T>
org.tweetyproject.graphs.Edge<T>
- Type Parameters:
T
- The type of the nodes this edge connects
- Direct Known Subclasses:
Ark
,BpmnEdge
,DirectedEdge
,MarkingEdge
,UndirectedEdge
Instances of this class represent abstract edges.
- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Edge
Creates a new edge for the given nodes.- Parameters:
nodeA
- some node.nodeB
- some node.
-
Edge
Creates a new edge for the given nodes.- Parameters:
nodeA
- some node.nodeB
- some node.label
- some edge label.
-
-
Method Details
-
getNodeA
Returns the first node of this edge.- Returns:
- the first node of this edge.
-
getNodeB
Returns the second node of this edge.- Returns:
- the second node of this edge.
-
getLabel
Returns the label of this edge.- Returns:
- the label of this edge.
-
hashCode
public int hashCode() -
equals
-