added graphio test, renamed BfsIterator, fixed reading of empty lines