EdgeIterable class for adjacency matrix and methods using this class