algo hw 6. done
graph hw2