-- Copyright 2003, Trustees of Indiana University -- Please see the license in the file ../LICENSE class ADJ_LIST_VERTEX_ITERATOR inherit JITERATOR[INTEGER] create make_from_adjacency_list_impl feature {NONE} -- vertex_iter : LINEAR_ITERATOR[LINKED_LIST[INTEGER]] current_index : INTEGER container : ARRAYED_LIST[LINKED_LIST[INTEGER]] feature {ADJACENCY_LIST} make_from_adjacency_list_impl (a: ARRAYED_LIST[LINKED_LIST[INTEGER]]) is do container := a end feature -- Access -- sequence_is_empty : BOOLEAN start is do current_index := 0 end item: INTEGER is -- require else -- current_index < container.count do Result := current_index end off : BOOLEAN is do Result := current_index >= container.count end forth is do current_index := current_index + 1 end end -- ADJ_LIST_VERTEX_ITERATOR