Commit ea796d93 authored by Fokion Zervoudakis's avatar Fokion Zervoudakis

Remove unnecessary collection.

parent 47adaf01
......@@ -70,7 +70,7 @@ class AdjList<T extends Vertex> implements Graph<T> {
@Override
public Iterator<T> iterator() {
return new ArrayList<>(M.keySet()).iterator();
return M.keySet().iterator();
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment