E is passed; attention, we have double number of edges in arraylist, so be careful with idndices