fixed iterable bug on line 58, still throws an error when outputting to gexf, requires stepthrough