Update structure tests to use Graph.iterators() #398