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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds the edge.booleanAdds the node.voidclear()booleanedgeExists(T start, T end) Edge exists.Edges from.booleaninthashCode()booleanisEmpty()Checks if is empty.iterator()Returns an iterator that can traverse the nodes in the graph.booleannodeExists(T node) Node exists.intsize()Size.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-