Some little refactoring on 3.1.2

This commit is contained in:
joachimschmidt557 2019-02-21 13:56:04 +01:00
parent 7226588af3
commit db6e70ebaf
2 changed files with 3 additions and 2 deletions

View file

@ -69,8 +69,8 @@ public abstract class GraphAlgorithm<T> {
if (availableNodes.isEmpty()) {
return null;
}
Iterator<Node<T>> iter = availableNodes.iterator();
Iterator<Node<T>> iterMinElem = iter;
AlgorithmNode<T> MinElem;
AlgorithmNode<T> tempElem;
@ -79,7 +79,6 @@ public abstract class GraphAlgorithm<T> {
while (iter.hasNext()) {
tempElem = algorithmNodes.get(iter.next());
if (tempElem.value < MinElem.value) {
iterMinElem = iter;
MinElem = tempElem;
}
}