Class DirectedGraph<T>
java.lang.Object
de.uka.ipd.sdq.dsexplore.analysis.qes.DirectedGraph<T>
- Type Parameters:
T
- the generic type
- All Implemented Interfaces:
Iterable<T>
The Class DirectedGraph.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds the edge.boolean
Adds the node.void
clear()
boolean
edgeExists
(T start, T end) Edge exists.Edges from.boolean
int
hashCode()
boolean
isEmpty()
Checks if is empty.iterator()
Returns an iterator that can traverse the nodes in the graph.boolean
nodeExists
(T node) Node exists.int
size()
Size.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DirectedGraph
public DirectedGraph()
-
-
Method Details
-
addEdge
Adds the edge.- Parameters:
start
- the startend
- the dest
-
addNode
Adds the node.- Parameters:
node
- the node- Returns:
- true, if successful
-
clear
public void clear() -
edgeExists
Edge exists.- Parameters:
start
- the startend
- the end- Returns:
- true, if successful
-
edgesFrom
Edges from.- Parameters:
node
- the node- Returns:
- the sets the
-
equals
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty()Checks if is empty.- Returns:
- true, if is empty
-
iterator
Returns an iterator that can traverse the nodes in the graph. -
nodeExists
Node exists.- Parameters:
node
- the node- Returns:
- true, if successful
-
size
public int size()Size.- Returns:
- the int
-
toString
-