Class DirectedGraph<T>
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.analysis.qes.DirectedGraph<T>
-
-
Constructor Summary
Constructors Constructor Description DirectedGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddEdge(T start, T end)Adds the edge.booleanaddNode(T node)Adds the node.voidclear()booleanedgeExists(T start, T end)Edge exists.Set<T>edgesFrom(T node)Edges from.booleanequals(Object obj)inthashCode()booleanisEmpty()Checks if is empty.Iterator<T>iterator()Returns an iterator that can traverse the nodes in the graph.booleannodeExists(T node)Node exists.intsize()Size.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
addEdge
public boolean addEdge(T start, T end)
Adds the edge.- Parameters:
start- the startend- the dest
-
addNode
public boolean addNode(T node)
Adds the node.- Parameters:
node- the node- Returns:
- true, if successful
-
clear
public void clear()
-
edgeExists
public boolean edgeExists(T start, T end)
Edge exists.- Parameters:
start- the startend- the end- Returns:
- true, if successful
-
edgesFrom
public Set<T> edgesFrom(T node)
Edges from.- Parameters:
node- the node- Returns:
- the sets the
-
isEmpty
public boolean isEmpty()
Checks if is empty.- Returns:
- true, if is empty
-
iterator
public Iterator<T> iterator()
Returns an iterator that can traverse the nodes in the graph.
-
nodeExists
public boolean nodeExists(T node)
Node exists.- Parameters:
node- the node- Returns:
- true, if successful
-
size
public int size()
Size.- Returns:
- the int
-
-