Package org.tweetyproject.graphs
Class HyperDirEdge<T extends Node>
java.lang.Object
org.tweetyproject.graphs.GeneralEdge<T>
org.tweetyproject.graphs.HyperDirEdge<T>
- Type Parameters:
T- The type of the nodes this edge connects
- Direct Known Subclasses:
SetAttack
Instances of this class represent abstract edges.
- Author:
- Sebastian Franke
-
Constructor Summary
ConstructorsConstructorDescriptionHyperDirEdge(Set<T> attackers, T nodeB) Creates a new edge for the given nodes.HyperDirEdge(Set<T> nodeA, T nodeB, String label) Creates a new edge for the given nodes.HyperDirEdge(T attackers, T nodeB) Creates a new edge for the given nodes. -
Method Summary
-
Constructor Details
-
HyperDirEdge
Creates a new edge for the given nodes.- Parameters:
attackers- some node.nodeB- some node.
-
HyperDirEdge
Creates a new edge for the given nodes.- Parameters:
attackers- some node.nodeB- some node.
-
HyperDirEdge
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() -
remove
Removes the specified argument from the node. If the argument is present in nodeA, it is removed from nodeA. If the argument is equal to nodeB, nodeB is set to null. If the argument is not found in either nodeA or nodeB, the method returns without making any changes.- Parameters:
arg- The argument to be removed. It will be removed from nodeA if present, or nodeB will be set to null if the argument is equal to nodeB.
-
equals
-
toString
-