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
ConstructorDescriptionHyperDirEdge
(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
-
HyperDirEdge
-
HyperDirEdge
-
-
Method Details
-
getNodeA
-
getNodeB
-
getLabel
-
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
-